开发者

Force willAnimateRotationToInterfaceOrientation method

开发者 https://www.devze.com 2023-02-10 03:30 出处:网络
I want to call willAnimateRotationToInterfaceOrientation method when my app starts, how can I force this method toe execute?

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消