Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

guydor

macrumors member
Original poster
Mar 10, 2009
67
0
in other UIViewController class?

Hi,

I have an UISearchBar in one UIViewController and I want to get its value and to use it in other UIViewController (the second one).

How do I do that?

If I use searchBar.text I get an error:

"Request for member 'text' in something not a structure or union"

Thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.