用mainstroyboard代替xib文件
0
目前工程在app delegate中使用MainWindow.xib当作主要的nib文件,在main.m文件中的代码:
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
享用Mainstoryboard代替,在info.plist文件中修改时报错:
there is no app delegate set. An app delegate class must be specified to use a main storyboard file
请高手解惑。
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
享用Mainstoryboard代替,在info.plist文件中修改时报错:
there is no app delegate set. An app delegate class must be specified to use a main storyboard file
请高手解惑。