The real reason, I suspect, that this has been done on the iPhone is that it is this anodised layer that you can then dye to pretty much any colour you want.
The system the researchers tested used a type of solar cell known as dye-sensitized solar cells, a lightweight and inexpensive type where the active layer is composed of titanium dioxide, rather than the silicon used in conventional solar cells.