iphone CATiledLayer 不被识别为类?
我正在关注苹果 ZoomingPDFViewer 示例,我的框架与示例中一样,但是当我在 xcode 中编写时,类 CATiledLayer
在编辑区域中无法识别(没有出现紫色作为类,就像在示例,然后命令单击该单词但无法识别它),我错过了什么?
CATiledLayer *tiledLayer = (CATiledLayer *)[self layer];
我构建项目并没有收到任何错误或警告,但为什么它无法识别该类?
编辑>
按照建议更改了项目获取信息设置,但仍然不起作用!
- 将编译器从 GCC 4.2 更改为 LLVM GCC 4.2。
- 更改了项目格式以匹配我正在使用的 Xcode 版本(“Xcode 3.2 兼容”)。
- 单击“重建代码感知索引”按钮。
仍然不工作!, 它可能是什么?,它似乎在苹果示例代码中工作,但在我的代码中不起作用?我会缺少什么?
提前致谢!!
Im following the apple ZoomingPDFViewer example, I have the frameworks just as in the example, but when I write in xcode the class CATiledLayer
doesnt get recognized in the edit area (no coming purple as a class, like in the example, and comand click on that word and doesnt recognize it), what am I missing ??
CATiledLayer *tiledLayer = (CATiledLayer *)[self layer];
I build the project and get no error or warning, but why it doesnt recognize the class?
EDIT>
changed project get info settings as suggested, but still not working!
- changed the compiler from GCC 4.2 to LLVM GCC 4.2.
- changed the Project Format to match the version of Xcode I'm using ("Xcode 3.2-compatible").
- click "Rebuild Code Sense Index" button.
still not working!,
what could it be?, it appears working in apple sample code, but not in mine?? What would I be missing?
thanks in advance!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 xcode 代码感知颜色/完成功能不起作用
Check out xcode code sense color/completion not working