uitableview - calling another ViewController on row selection in TableViewController -


i using uitableviewcontroller , on selection of row list want open scene , send info of selected row. got 1 link , followed , attched segue1 segue2 in push mode. when executing throwing error no such segue associated segue1.

below code row selection:

- (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath {      nslog(@"index %ld",(long)indexpath.row );     [self performseguewithidentifier:@"put_controller" sender:indexpath.self];    } -(void)prepareforsegue:(uistoryboardsegue *)segue sender:(id)sender {     if ([[segue identifier] isequaltostring:@"put_controller"])      {         nsindexpath *indexpath = [self.tableview indexpathforselectedrow];         nsdate *object = _objects[indexpath.row];         [[segue destinationviewcontroller] setdetailitem:object];     } } 

don't forget set storyboard segue identifier:- put_controller enter image description here


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -