我在 iPad 上使用拆分视图模板。
在我MasterViewController的代码中:
NSBundle * bundle = [NSBundle mainBundle];
作品。
在我DetailViewController相同的代码中显示错误?我进口了<UIKit/UIKit.h>. 它知道NSBundle但不承认mainBundle任何原因。
如果是这样就好了。可以帮助我!

Missing "[" at start of message send expression
编辑
回答:
我忘了括号。它在一个案例陈述中。所以使用:
case 1:
{
//bla ...
}