I want to call willAnimateRotationToInterfaceOrientation method when my app starts, how can I force this method toe execute? It's only invoked when I rotate device now :(
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}
One detail... when device is in horizontal mode it is called but when I start with device in ver开发者_Go百科tical mode this method is never invoked :(
Why don't you just set your orientation to UISupportedInterfaceOrientations in the Info.plist file?
精彩评论