views:

27

answers:

1

My iPad app is freezing at this line of code:

        self.view.frame = [[UIScreen mainScreen] applicationFrame];

There are no errors, warnings and the app doesn't crash, it just freezes. This is obviously standard code and I use the same line in a very similar view controller with no problems.

Any ideas?

A: 

Have you tried splitting it like

UIScreen *s = [UIScreen mainScreen];
NSLog("Alive and kicking");
CGRect newframe = [s applicationFrame];
NSLog("Alive and still kicking");
self.view.frame = newframe;
NSLog("Alive and still^2 kicking");

to pinpoint the problem?

mvds