Saturday, June 13, 2009

Apple Utility App Template Landscape Mode unplugged

There seems to be a problem with the Apples Utility App template when used in landscape mode. It works just fine in portrait, but go to landscape and things go wonky.

It seems to be a well know problem as noted here: http://discussions.apple.com/thread.jspa?messageID=8295525.

The solution was pretty simple. I added

self.view.autoresizesSubviews = NO;


To the viewDidLoad method of the RootViewController. Thats it! Of course you need to do the usual things such as, but this was what was needed to get things going.


Hope this helps!


Tìoraidh!



0 comments:

Post a Comment