• 用mainstroyboard代替xib文件

    0
    C/C++ ci 4309 次瀏覽
    目前工程在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

    請高手解惑。

    相似問題

    相關經驗

    相關資訊

    相關文檔

  • sesese色