ios - Perform segue is not having any impact -


i have following code :

- (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath {       indexpathrow = indexpath.row;       nslog(@"indexpathrow.%d", indexpathrow);       mylist.recordidtoedit = [[myidarray objectatindex:indexpathr nslog(@"item selected..%d", safetyinventorylist.recordidtoedit);     [self performseguewithidentifier:@"detailsviewcontroller" sender:nil]; }  - (void)prepareforsegue:(uistoryboardsegue *)segue sender:(id)sender  {   if([segue.identifier isequaltostring:@"detailsviewcontroller"])     {        detailsviewcontroller *destviewcontroller = segue.destinationviewcontroller;        int itemidtofetch = mylist.recordidtoedit;        [detailedlist fetchdetails:itemidtofetch];        destviewcontroller.name = detailedlist.itemname;        destviewcontroller.itemid = itemidtofetch;     } } 

my segue identifier correct , perform segue works fine if dont have processing in preparefor segue! also, tried move fetching data db detailed view controller instead of prepareforsegue, in viewdidload. has no effect. details view controller not shown , no error thrown. program halts there !

remove line

[self performseguewithidentifier:@"detailsviewcontroller" sender:nil]; 

from didselectrowatindexpath , try.

make sure segue has identifier name detailsviewcontroller can check selecting segue , select attribute inspector storyboard segue identifier name.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -