开发者

Landscape Orientation not working

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
    return YES; 
}

I use this snippet for rotation.I am using image view and scro开发者_如何转开发ll view in that view.how to rotate that view...?

Thanks in advance


First set

-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation { return YES; }`

in mainView controller then is work's for other controller's


In your info.plist add all the four orientations in UISupportedInterfaceOrientations and set all the four orientations true.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜