ios - How can I get into a row if it is selected in Xcode6.1.1 in -


i'm trying row, when selected of method 'tableview:didselectrowatindexpath:'. specifically, have small dictionary , purpose selected row show details word taken google. prepared class purpose , called definitionviewcontroller.

here method wrote purpose:

- (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath{     definitionviewcontroller *dvc = [[definitionviewcontroller alloc] init];     dvc.word = [self wordatindexpath:indexpath];     [self.navigationcontroller pushviewcontroller:dvc animated:yes];     [dvc release];  } 

my problem is, doesn't response when clicked on row. however, tried insert alert method, worked perfectly. problem somewhere there, can't figure out is.

i'm using xcode 6.1.1, , used storyboard have tableview.

hope can me that!

problem solved. found on internet,and link here: http://www.techotopia.com/index.php/implementing_ios_8_tableview_navigation_using_storyboards_in_xcode_6_and_swift

try using - (id)instantiateviewcontrollerwithidentifier:(nsstring *)identifier; when initializing definition controller. identifier id set view controller in storyboard.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -