objective c - How to go to SecondViewController from RootViewController -


i have search hours no answers , seems lot of people have issue... using theos on iphone , have rootviewcontroller code:

- (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath{      [self performseguewithidentifier:@"secondviewcontroller.m" sender:nil];  } 

there table , cell on table name directions when clicked want display secondviewcontroller.m, have no idea or how this.

performseguewithidentifier takes name of segue. not take name of view controller, , not name of file containing view controller. intended use storyboards.

take @ uiviewcontroller's presentviewcontroller, or navigationcontroller's pushviewcontroller if have navigation stack in rvc.


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -