【发布时间】:2013-01-24 01:37:18
【问题描述】:
我收到运行时错误,因为类应用程序委托的重复接口定义。那么这段代码有什么问题。
#import <UIKit/UIKit.h>
@class ViewController;
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) ViewController *viewController;
@end
【问题讨论】:
-
可以分享一下viewController.m的代码吗?
-
你上面的代码没有问题。这个:stackoverflow.com/questions/5180232/… 可能会帮助您解决问题。
标签: ios objective-c appdelegate