The sun can damage a CMOS sensor under pretty extreme circumstances, but it's the heat that'll do the damage.
The sensor in an iPhone cannot be damaged by the sun.
does the iPhone's sensor have a uv coating or filter on it? if it does than she/he shouldn't worry.