1
我最近從故事板轉換爲XIB。因爲我有大量的視圖,並且通過git存儲庫更容易使用XIB。 (此應用程序現在可用於iOS 4)。故事板 - > XIB |加載視圖
現在,這裏是我曾經有過的代碼,但我不知道我會怎樣實現無故事板是相同的,但XIBs:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:[NSBundle bundleForClass:[self class]]];
infoView *infoViewController = [storyboard instantiateViewControllerWithIdentifier:[defaults objectForKey:@"launchScreen"]];
infoViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentViewController:infoViewController animated:YES completion:nil];