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 ,