I have an app that has a main view that acts as a view controller. This main view has 3 buttons on it. I have 3 subviews that I swap in and out of this main view, controlled by the 3 buttons. Each of the subviews has a button on it. When this button is pressed I want it to disable the 3 buttons on the main view until the button is pressed again. Is there a way to send a message between the views to disable the buttons?
Share
Use NSNotifications to post a notification that the buttons were pressed.
And then add observers such that they listen to these notifications.
Now implement
buttonPressRead HERE for the NSNotification manual and learn to use it .