這真的很奇怪。今天從學校回來並啓動我的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