标签: objective-c cocoa-touch
任何人都可以告诉我为什么这行会抛出不兼容的类型错误?
UIDeviceOrientation *orientation = [UIDevice currentDevice].orientation;
答案 0 :(得分:6)
它没有返回指针:
UIDeviceOrientation orientation = [UIDevice currentDevice].orientation;