I have an outstanding question that is about the use of the screen size in an non full screen UIWebview
to detect an iPhone 5 device in Javascript. I am starting to believe that this is not the way to go.
Right now I am investigating even more ugly hacks to do this. What caught my attention is that the Javascript evaluation on an iPhone 5 is twice as fast as on the iPhone 4. Maybe we could run some calculations and time that. We then could say the device is an iPhone 5 if it completes in < x ms.
Does anybody know of an example of this kind of test? And what calculations could best be benchmarked?