How to use storyboard to jump?,storyboardjump
How to use storyboard?
Between the controller and the contrller. We can use it to jum. You can use it for online operations and use code.
how to use code to jum?
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"yourStroyboardName" bundle:nil];// Instantiates and returns the view controller with the specified identifierUIViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"storyboardId"];[self.navigationController pushViewController:viewController animated:YES];
On the way to access the controller. We can also use the following methods.
// return the initial view controller in the storyboardUIViewController *viewController = [storyboard instantiateInitialViewController];
to be continues... ...
IOS開發:storyboard怎從代碼編輯模式返回視圖模式?
選中.storyboard檔案,右鍵,open as,interface Builder
工程中怎添加新的storyboard,storyboard之間怎切換?
UIStoryboard的storyboardWithName:bundle:方法,載入storyboardUIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle:nil];MainViewController *mainViewController = [storyboard instantiateInitialViewController]; 查看原帖>>