UIDeviceOrientation * orientation = [UIDevice currentDevice] .orientation;获得“初始化中不可比的类型”错误

时间:2010-08-30 01:03:06

标签: objective-c cocoa-touch

任何人都可以告诉我为什么这行会抛出不兼容的类型错误?

UIDeviceOrientation *orientation = [UIDevice currentDevice].orientation;

1 个答案:

答案 0 :(得分:6)

它没有返回指针:

UIDeviceOrientation orientation = [UIDevice currentDevice].orientation;