presentModalViewController can't display view controller for the second time

0 votes
asked Jun 4, 2010 by bala

I am using a tab bar controller. In the tab bar, I'm having one view. In that tab, I call one function using NSTimer and it opens another view controller.

First * sVC = [[First alloc] initWithNibName:@"First" bundle:[NSBundle mainBundle]]; 
[self presentModalViewController:sVC animated:YES];

This opens a view controller that has one button. When the user clicks that button, I want to close the view and call NSTimer.

[self dismissModalViewControllerAnimated:NO]

The problem is that at the first time, the view opened and closed, but the second time, the view could not open.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter