您的位置:首页 > 其它

[OC]:unrecognized selector sent to instance 0x7f9521c13d10

2015-11-17 19:52 381 查看
#import<Foundation/Foundation.h>

@interface Stu : NSObject
{

}

@end

@implementation Stu

@end

int main()
{
Stu *s = [Stu new];
[s hello];
return 0;
}


由上面程序而产生的error:unrecognized selector sent to instance 0x7f9521c13d10是说:给对象发送一条不能被识别的消息hello,这个问题使得程序能链接不能编译
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: