views:

10

answers:

1

How would I go about updating an object declared in the RootViewController from my MainViewController?

I'm attempting to hide my info button when my iAd is tapped, I have all the relevant pieces of code for the iAd in place, but can't figure out how to code the action. I saw an example of a similar situation online that was like this:

((MainViewController *)parentViewController).infoButton.hidden = @"";

I haven't been able to get that to work though, I just need this one value modifiable from the MVC, can anyone give me a simple suggestion?

P.S. I'm a total n00b and a snippet of code would help a great deal, I'm kind of learning as I go, thanks!

A: 

I figured this out through use of the NSNotificationCenter

Steve Bowling