給 storyboard 的 view 一個Identifier
UIStoryboard *storybord = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
[self presentViewController:[storybord instantiateViewControllerWithIdentifier:@"PhotoLibrary"] animated:NOcompletion:nil];
粗體 => 取得view
--------------------------------------------------------------------------------------
建立一個segue 並加上idIdentifier
就可利用以下方法任意觸發
[self performSegueWithIdentifier:@"touch to push" sender:nil];
資料來源:http://ryan.easymorse.com/?p=39
沒有留言:
張貼留言