开发者

device rotation: portrait- landscape

开发者 https://www.devze.com 2022-12-17 07:57 出处:网络
I am working on iphone application in which i am showing camera view for zoom in zoom out using scroller.

I am working on iphone application in which i am showing camera view for zoom in zoom out using scroller. I want to add functionality, when a user rotate device from portarit to lan开发者_如何学编程dscape or vice versa then camera view should adjust accordingly.

how can i fix it Please help

thanks, Aaryan


Your UIViewController needs to implement the following methods:

- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
0

精彩评论

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