Write the following structure with storyboard view:
[Navigation controller] => [View Controller - rootView] => [TableView Controller]
Search through the network learned: When rootView into tableView from transmission data can prepareForSegue; while tableView return rootView from data returned by delegates. Detailed usage of the delegates what? I want to get tableView choice situation.
prepareForSegue usage is as follows:
- (Void) prepareForSegue: (UIStoryboardSegue *) segue sender: (id) sender
{
if ([segue.identifier isEqualToString: @ "searchSegue"]) {
searchViewController * searchController = (searchViewController *) [segue destinationViewController];
...
}
}
Reply:
Directly in the UI design inside with storyboard, basically do not need to write code like that before. In the UI inside, there is a Storyboard Segues, select push, on it.
Reply:
Upstairs positive solution. . .
Reply:
Storyboard Segues of style in the election push it? That just set [View Controller - rootView] => [TableView Controller] it, all I need is from [TableView Controller] return [View Controller - rootView] should be triggered when a delegate (and I want to know which delegate ), then I get TableView in value in this delegate.
Reply:
It seems that I still use global variables to take TableView in value calculations
Reply:
Two things define the interface must own a delegate. You can define a delegate in tableview inside, and then realize his delegate in rootview inside, when the trigger return delegate, on it.
No comments:
Post a Comment