Lens Transposer is an example application to demonstrate how to write an iPhone app.
It takes a spectacle correction and displays it in plus and minus cylinder form (as well as the spherical equivalent).
Download a copy of the project here.
An explanation of how to write the program is here.