【发布时间】:2012-01-25 01:27:33
【问题描述】:
我的应用程序运行良好,然后什么也没做,我在 appDelegate.h 中突然出现 2 个错误。有人这样说:
Objective-C 方法的预期选择器
另一个人这样说:
预期的方法体
我不知道为什么会发生这种情况,我有其他项目具有完全相同的应用程序委托,它们都工作得很好。
这是我的 appDelegate.h:
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate> // I get the errors here
@property (strong, nonatomic) UITabBarController *tbc;
@property(strong, nonatomic) UIWindow *window;
@end
【问题讨论】:
标签: objective-c xcode