How to navigate from one view controller to another view controller on button click?
ios, navigation, uibutton, uiviewcontroller
Solution
Follow the below step,let the button selector is
`[button addTarget:select action:@selector(buttonClick) forControlEvents:UIControlEventTouchUpInside];` and implement the selector as
-(void)buttonClick{
UIViewController *controler = [[UIViewController alloc] init];
[self.navigationController pushViewController:controler animated:YES];}
and also make sure viewController has NavigationController embedded within it and replace UIViewController with the Controller you wish to push.
Problem
I am new to iOS Application development, please help me how can I go from one `view controller` to another `view controller` on button click?