UIDeviceOrientation * orientation = [UIDevice currentDevice] .orientation;得到一个'不兼容的类型初始化'错误

问题描述:

谁能告诉我为什么这行会抛出一个不兼容的类型错误?UIDeviceOrientation * orientation = [UIDevice currentDevice] .orientation;得到一个'不兼容的类型初始化'错误

UIDeviceOrientation *orientation = [UIDevice currentDevice].orientation; 

它不是返回一个指针:

UIDeviceOrientation orientation = [UIDevice currentDevice].orientation; 
+0

OOOOH ...我现在看到的,谢谢。 – Joe 2010-08-30 01:07:07