How to call another tabbar and call an method
How to call another tabbar and call an method
- Subject: How to call another tabbar and call an method
- From: Junior ABC <email@hidden>
- Date: Wed, 1 Dec 2010 00:44:03 -0200
Hi all,
sorry for my poor english. i am brazilian.
I have an app with 2 tabs. On first tab I search data on my database and i
store the search terms. On second tab called history I show the terms and
when i select one term on tableview I want to call the first tab and search
automatically using the term selected. How i do it.
My app structure
tab bar controller
navigation controller (search) - first tab
view controller
search bar
table view
navigation controller (history) - second tab
view controller
table view
this is the method where I select one term
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(
NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
NSString *searchTerm = cell.textLabel.text;
//call and search on first tab (how??)
}
thanks guys
jr abc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden