Landscape Mode ONLY for iPhone or iPad

Code found here Launching in Landscape Mode Applications in iPhone OS normally launch in portrait mode to match the orientation of the Home screen. If you have an application that runs in both portrait and landscape modes, your application should always launch in portrait mode initially and then let its view controllers rotate the interface … Read more

How do I check if the useragent is an ipad or iphone?

UPDATE on 17-07-2020: it looks like Apple removed the word iPad and now use Macintosh instead UPDATE: Since the iPad user agent contains the word iPhone as @Rob Hruska mentioned: Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10 and iPhone user agent is something like … Read more

iOS 7 Safari: OS locks up for 4 seconds when clicking/focusing on a HTML input

(There are some somewhat-effective solutions, see near the end of the list) At my company we are also suffering from this. We filed an issue with Apple but have heard mum. Here are some interesting jsfiddles to help illustrate some of the issues, it definitely seems to revolve around the number of hidden fields, and … Read more

How do you force an iPad home screen bookmarked web app to refresh?

Another workaround is to add ?v=1 to your Javascript and CSS links. For example: <link rel=”stylesheet” type=”text/css” media=”all” href=”https://stackoverflow.com/questions/8792255/./css/ipad.css?v=1″> <script src=”./js/ipad.js?v=1″></script> It seems one doesn’t have to update the number when your file has changed, as far as I can tell. Apparently, on an iPad 2 with the latest software update installed, it is enough … Read more