首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >UIDeviceOrientation *orientation = [UIDevice currentDevice].orientation;获取‘初始化中不完整的类型’错误

UIDeviceOrientation *orientation = [UIDevice currentDevice].orientation;获取‘初始化中不完整的类型’错误
EN

Stack Overflow用户
提问于 2010-08-30 09:03:06
回答 1查看 845关注 0票数 0

谁能告诉我为什么这一行会抛出不兼容的类型错误?

代码语言:javascript
复制
UIDeviceOrientation *orientation = [UIDevice currentDevice].orientation;
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-08-30 09:06:04

它不会返回指针:

代码语言:javascript
复制
UIDeviceOrientation orientation = [UIDevice currentDevice].orientation;
票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3597245

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档