Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我创建了这个方法:
- (void)addToViewController:(SecViewController *)controller didFinishEnteringItem:(NSString *)item;` <br>
并在SecViewController *Xcode处不断给我Expected a type错误。这意味着什么?SecViewController不是类型?
Xcode
Expected a type
你必须声明SecViewController:
SecViewController
@class SecViewController;
...在标题的顶部。
注意:不要只#import使用所有标题。这只会恶化您的标头依赖性。
#import