Apple's solution is to adjust the composition of the camera.
Apple Responds to iPhone 5's Purple Lens Flare Issue : Read more
Apple Responds to iPhone 5's Purple Lens Flare Issue : Read more
That's right apple deny the issue and blow it off with a stupid work-around...you can do no wrong... Besides, you've gotta be creative if you're going to own an iPhone...and simple too...The Cupertino-based company explained that the issue is present in every generation of the iPhone and indeed most small cameras..