2種方式:
1.選中某個按鈕,右鍵連線到某個界面,選擇modal,即可實現在點擊按鈕後跳轉到這個界面。
2.使用代碼來實現:
//首先給需要跳轉到的界面設置一個Storyboard ID
UIViewController *next = [[self storyboard] instantiateViewControllerWithIdentifier:@"填寫Storyboard ID"];
[self presentModalViewController:next animated:NO];