2012年3月21日 星期三

push到storyboard的view上

給 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

沒有留言: