// 按钮适应屏幕的旋转
-(void)rotateBtn:(float)n {
UIButton *testBtn= [self.view viewWithTagName:@"TestBtn"];
testBtn.transform = CGAffineTransformMakeRotation(n * M_PI / 180.0);
}
// 屏幕旋转状态变化
- (void)orientationChanged:(NSNotification *
不开启屏幕旋转, 监听iOS屏幕旋转状态
最新推荐文章于 2023-10-21 22:37:44 发布