这真的很奇怪。今天从学校回来并启动我的Mac Mini时,我打开Xcode,并在我的AppDelegate.h
文件中出现两个错误。其中一个错误是Expected selector for Objective-C method
,另一个是Expected method body
。我GOOGLE了这两个错误,并没有发现任何可以解决我的情况。我试过重新启动Xcode以及我的电脑。我也尝试过“清理”这个项目,但仍然没有解决我的问题。这个错误可能是什么?它在我的最后?或者这是一个Xcode错误?感谢:AppDelegate.h错误 - XCode
代码:AppDelegate.h
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) UINavigationController *navigationController;
@end
我发布的代码是一个普通的main.m文件:) – 2012-12-21 06:03:15