Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

shtuceron

macrumors newbie
Original poster
Dec 22, 2009
16
0
Hello!

I create chain of viewController in storyboard and bind it together. I have a button on one of viewController, if I click on it, other viewController is showing. It simple. But I don't know what I should make, that show this viewController without click on the button - programmatically, for example if i have a timer, throw 30 sec and view must show.

I have some code, but it doesn't work for me.

Code:
viewController = [[viewController alloc] init];
[viewController setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
[self presentModalViewController:viewController animated:YES];

Thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.