我是 iOS 开发新手,在创建类的实例时遇到问题。
我有一个名为 unknown.framework 的框架,它有一个类 Abc.h
当我创建该类的实例时,应用程序正在崩溃。
代码是。
IN secondAppDelegate.h
#import <unknownToolkit/unknown.h>
@interface secondAppDelegate : UIResponder <UIApplicationDelegate>
{
Abc *method;
}
@property (strong, nonatomic)Abc *method;
In secondAppDelegate.m
Abc *method = [Abc sharedInstance];
[method callAnInstanceMethod];
其中 unknown.frmaework 是私有框架,Abc.h 是类。
and the error report is :
2013-05-17 14:48:58.574 AbcDemo[1832:12b03] -[__NSArrayI mapUsingBlock:usingFilter:]: unrecognized selector sent to instance 0x8220a70
2013-05-17 14:48:58.600 AbcDemo[1832:12b03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI mapUsingBlock:usingFilter:]: unrecognized selector sent to instance 0x8220a70'
*** First throw call stack:
(0x1d49012 0x1335e7e 0x1dd44bd 0x1d38bbc 0x1d3894e 0x5ab60 0x21f19 0x2bda 0x277157 0x277747 0x27894b 0x289cb5 0x28abeb 0x27c698 0x1ca4df9 0x1ca4ad0 0x1cbebf5 0x1cbe962 0x1cefbb6 0x1ceef44 0x1ceee1b 0x27817a 0x279ffc 0x28dd 0x2805)
libc++abi.dylib: terminate called throwing an exception
并且代码在 iphonesimiulator -> user/include -> dispactch -> once.h 中崩溃
代码崩溃的行是:
_dispatch_once(dispatch_once_t *predicate, dispatch_block_t block)
{
if (DISPATCH_EXPECT(*predicate, ~0l) != ~0l) {
dispatch_once(predicate, block);
}
}
请帮我
提前致谢。