1

我正在尝试运行从以下网址下载的 TapKu iOS 演示项目: https ://github.com/devinross/tapkulibrary/branches

我构建没有错误,但是当它安装在模拟器上时,我收到以下错误消息:

[AppDelegate_iPhone window]: unrecognized selector sent to instance 0x9b7ad90
2012-12-03 17:05:13.478 unviersaldemo[94132:13d03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AppDelegate_iPhone window]: unrecognized selector sent to instance 0x9b7ad90'
*** First throw call stack:
(0x1a44012 0x1429e7e 0x1acf4bd 0x143d7ea 0x1a33cf9 0x1a3394e 0x3da78 0x2bcc 0x4807b7 0x480da7 0x481fab 0x493315 0x49424b 0x485cf8 0x237fdf9 0x237fad0 0x19b9bf5 0x19b9962 0x19eabb6 0x19e9f44 0x19e9e1b 0x4817da 0x48365c 0x2b36 0x2925 0x1)
libc++abi.dylib: terminate called throwing an exception
(lldb)

任何想法?

4

1 回答 1

2

我刚刚补充说:

@interface AppDelegate_iPhone : TKAppDelegate <UIApplicationDelegate> {   
    UIWindow *window;
}

@property (nonatomic, retain) UIWindow *window;

在 AppDelegate_iPhone.h 文件中

@synthesize window;

在 AppDelegate_iPhone.m 文件中。为我工作。

于 2012-12-04T01:23:03.307 回答