Quote:
Originally Posted by seenu87
how to redirect to secondviewcontroller when clicked the button in firstviewcontroller
|
Suppose you are using a UINavigationController with the firstviewcontroller as the rootviewcontroller. When you want to push the secondviewcontroller, create an instance of secondviewcontroller first and then call the pushviewcontroller method.
It looks like this:
(suppose the class is SecondViewController)
SecondViewController *secondviewcontroller=[[SecondViewController alloc] init];
[self.navigationController pushviewcontroller:secondviewcontroller animated:YES];