iphone - Segue from UITableViewCell to another ViewController -
i have created single view application storyboard, dragged , dropped tableview . able inflate tableview , data on clicking of uitableviewcell need goto next viewcontroller. dragged , dropped viewcontroller storyboard , connected mainviewcontroller newly created viewcontroller. need goto new view controller didselectrowatindexpath method
i tried using this
-(void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath { testviewcontroller *test = [self.storyboard instantiateviewcontrollerwithidentifier:@"testing"]; [test performseguewithidentifier:@"test" sender:self]; } i getting error
2013-09-03 23:33:21.234 storyboard[946:c07] * terminating app due uncaught exception 'nsinvalidargumentexception', reason: 'storyboard () doesn't contain view controller identifier 'testing'' * first throw call stack: (0x1c92012 0x10cfe7e 0x45b679 0x2f14 0xc3285 0xc34ed 0xacd5b3 0x1c51376 0x1c50e06 0x1c38a82 0x1c37f44 0x1c37e1b 0x1bec7e3 0x1bec668 0x13ffc 0x28ed 0x2815) libc++abi.dylib: terminate called throwing exception
i tried
[test performseguewithidentifier:@"test" sender:self]; but not able find proper code. appreciated.
your table view performing segue, not control want segue too. want say:
[self performseguewithidentifier:@"test" sender:self]; also make sure segue has proper id:

Comments
Post a Comment