0
有沒有人有任何例子?我爲Titanium創建了iOS和Android模塊,但還沒有發現任何人們使用Storyboard進行視覺化的例子。如何使用Storyboard創建iOS Titanium模塊?
有沒有人有任何例子?我爲Titanium創建了iOS和Android模塊,但還沒有發現任何人們使用Storyboard進行視覺化的例子。如何使用Storyboard創建iOS Titanium模塊?
我知道你可以使用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];
我沒有試過但我認爲關鍵是提供正確的資源包,然後從模式中打開。