我从来没有加载一个包,所以我不知道为什么这不起作用。我不认为它很重要,但这里所讨论的.xib与所有其他.xibs都在相同的资源文件夹中。为什么不在[NSBundle mainBundle]在这里工作?
NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"S3AsyncView" owner:self];
返回此错误:
Instance method -loadNibNamed:owner not found. Return type defaults to id
我觉得这是错误奇怪,因为[一个NSBundle mainBundle]的返回类型当然是一个NSBundle。
看到编辑... – Macmade
Yoikes,这是一个可可应用程序。我需要什么UIKit,我没有看到任何UI元素? –
查看编辑2 ... – Macmade