以前的專案沒有Storyboard 啟動時會Crash,可能Commit到版控時,少了一些檔案...
1.加入一個UIViewController及xib
2.到AppDelegate.m3.到 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
4.最後加入
self.window.rootViewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
參考資料:
全站熱搜
留言列表