Load view when button is clicked in Xcodes Storyboard
Posted
by
dooonot
on Stack Overflow
See other posts from Stack Overflow
or by dooonot
Published on 2012-12-15T16:41:12Z
Indexed on
2012/12/15
17:03 UTC
Read the original article
Hit count: 164
I just started to use Storyboard in Xcode. I have a starting view that has some buttons inside. Is there a way to load a special view when a button is clicked?
I only found this workaround:
-(IBAction)loadRegistration:(id)sender {
// load registration controller
UIStoryboard *storyboard = self.storyboard;
RegisterController *svc = [storyboard instantiateViewControllerWithIdentifier:@"RegisterController"];
[self presentViewController:svc animated:YES completion:nil];
}
© Stack Overflow or respective owner