2013-02-16 48 views

回答

0

我知道你可以使用initWithNibName加載模塊碎粒,check this SO answer out.

對於故事板而言,我覺得有點複雜,因爲故事板定義了整個導航結構。我想,你有兩個選擇,打破在故事板到筆尖文件的特定窗口,然後加載這些需要,或者使用類似下面的代碼打開了故事板本身:

// You have to get the resource bundle first 
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"YourStoryBoards" bundle:resourceBundle]; 
UIViewController *vc = [sb instantiateViewControllerWithIdentifier:@"yourViewController"]; 
vc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; 
[self presentViewController:vc animated:YES completion:NULL]; 

我沒有試過但我認爲關鍵是提供正確的資源包,然後從模式中打開。

相關問題