• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to call another tabbar and call an method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: NSTask with unzip
  • Next by Date: [iOS] setting table style for root view controller of a navigation controller
  • Previous by thread: Re: Drawers on windows...
  • Next by thread: [iOS] setting table style for root view controller of a navigation controller
  • Index(es):
    • Date
    • Thread