Guy*_*ood 2 iphone sdk xcode objective-c uideviceorientation
我收到以下代码的上述编译器警告.我理解接口和设备方向之间的区别,但不确定如何修改以删除警告.有人可以帮忙吗?
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
if (ViewController != NULL) {
[ViewController configureForDeviceOrientation:toInterfaceOrientation];
}
if (Controller != NULL) {
[Controller configureForDeviceOrientation:toInterfaceOrientation];
}
currentOrientation = toInterfaceOrientation;
}
Run Code Online (Sandbox Code Playgroud)
只是施展它 [Controller configureForDeviceOrientation:(UIDeviceOrientation)toInterfaceOrientation];
| 归档时间: |
|
| 查看次数: |
5032 次 |
| 最近记录: |