P
P
Petrushka2015-06-28 14:59:27
Objective-C
Petrushka, 2015-06-28 14:59:27

How to make segue in didSelectRowAtIndexPath?

Good day I have a table with info, when you click on a cell, you need to throw a
link to another controller (download WebView) didSelectRowAtIndexPath to do a similar pass of this row? I did it through singleton, but it's a bone)) PS libka - swtableviewcell

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Tikhonov, 2015-06-29
@petruska

For example like this

//    DetailViewController.h
@interface DetailViewController
...
@property(nonatomic, weak) NSString *addressString;
...
@end

//    TableViewController.h
DetailViewController * detailViewController = [DetailViewController alloc] init];
detailViewController.addressString = array[index];
[self.navigationController pushViewController: detailViewController animated:YES];

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question