Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ストーリーボードを使用して、7行のUITableviewを作成し、各行に7つUIViewControllerのsを作成します。特定の行が選択されたときに特定のUIViewControllerに移動したい。Segueメソッドを使用してUIViewControllerをナビゲートするにはどうすればよいですか?
UIViewController
何度も試しましたが、うまくいきませんでした。
UITableViewControllerあなたはあなたからあなたの7つへの7つのセグエを接続することができますUIViewController。それぞれsegueが一意のを設定しますidentifier。次に、メソッドで、メソッドを使用してセグエをtableview:didSelectRowAtIndexPath:起動できます。perfromSegueWithIdentifier:sender:
UITableViewController
segue
identifier
tableview:didSelectRowAtIndexPath:
perfromSegueWithIdentifier:sender: