iphone - didSelectRowAtIndexPath does not push new view controller and also no error -


i have newb question. have table view controller that's working fine @ first glance. prints rows nsmutabledictionary. when click on row, fires function expected without crashing or giving system errors:

- (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath {     uistoryboard *storyboard = [uistoryboard storyboardwithname:@"mainstoryboard" bundle:[nsbundle mainbundle]];      scinventoryleaf *childview = [storyboard instantiateviewcontrollerwithidentifier:@"inventoryleaf"];      nsarray *keys = [arrinventory allkeys];     id akey = [keys objectatindex:indexpath.row];     id anobject = [arrinventory objectforkey:akey];     childview.title = akey;     childview.price = [anobject objectforkey:@"price"];      [self.navigationcontroller pushviewcontroller:childview animated:yes]; } 

but reason, childview not presenting after onrowclick. did name identifier in storyboard.

what wrong? shoudl troubleshoot next?

edit -- shold mention put breakpoints in viewdidload of scinventoryleaf.m, never seem fired. i'm guessing scinventoryleaf.m never used? i'm pretty sure eastblished relationship ebtween tblviewcontroller , scinventoryleaf....

put in breakpoint , check see childview not equal nil. if is, double-check "inventoryleaf" correct case. did spell "inventoryleaf"? cut , paste storyboard if needed.
rest of code looks fine.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -