在#import" myFile.h中丢失完成功能 [英] Lost completion in #import "myFile.h"
问题描述
由于我有Xcode 4.4,当我想在我的类上导入文件时,我已经失去了完成。我必须完全写文件(问题只出现在导入范围内,它在其他地方有效)
Since I had Xcode 4.4, I have lost the completion when I want to import file on my classes. I have to write the file entirely (The problem appears only in the import scope, it works elsewhere)
有没有人有同样的问题,知道怎么弄明白?
Has anyone the same problem and know how to figure out ?
推荐答案
转到您的项目 - >构建设置 - >用户标题搜索路径并添加 $(SRCROOT )
Go to your project --> build settings --> User Header Search Paths and add $(SRCROOT)
这对我有用。
编辑(另一个解决方案):
有时我在导入范围内随机丢失了自动完成功能。我通过在自动完成之间键入我的类之前键入双引号 #import
来修复它。
Edit (another solution) :
Sometimes I lost autocompletion randomly in my import scope. I fix it by typing the double quotes #import ""
before typing my class between with the autocompletion.
这篇关于在#import" myFile.h中丢失完成功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!