当前位置:编程学习 > wap >>

iPhone开发之小技巧:强制转换屏幕方向(3)

[plain]
[[UIApplication sharedApplication]setStatusBarOrientation:UIInte易做图ceOrientationLandscapeLeft animated:YES]; 
CGFloat duration = [UIApplication sharedApplication].statusBarOrientationAnimationDuration; 
[UIView beginAnimations:nil context:nil]; 
[UIView setAnimationDuration:duration]; 
 
view.transform = CGAffineTransformMakeRotation(-M_PI/2); 

虽然内容很少,但是很实用,一滴一点积累起来!


作者:js_dada
补充:移动开发 , IOS ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,