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

Schnarr

macrumors newbie
Original poster
I have a utility app I'm building with the two sides. On the FlipSide I have 9 UIButtons. I want to be able to use those buttons to control the background color on the Main screen. What code would I have to use to be able to do that, and where will I need to place the code?

Thanks for the Help! If you need further clarification, please ask
 
You need to make the MainView or it's background color, from the MainViewController accessible from the FlipsideViewController. This can be achieved by creating a setter for it in MainViewController's code (using an @property might be a good way to go). Then you need to find a way to get access to the MainViewController instance from within the FlipsideViewController instance, either via the AppDelegate or an instance-variable within FlipsideViewController that you assign. Then you should set up an IBAction method, that the buttons use, that actually does the setting.

Hope that covers the basic approach. At least, that's how I'd approach it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.