View Full Version : How do you send a command between views?

Oct 2, 2010, 07:06 PM
I can't believe I'm having this much trouble with this, but here we go. I have a main view that displays a modal view when a button is pressed. When the modal view is dismissed, I would like it to tell the main view to execute a certain method contained in the main view. How do I pass this command between views?

Oct 3, 2010, 03:17 AM
You don't send commands between views. You pass messages to objects. I'd suggest giving the modal view controller a reference to the calling view controller allowing it to pass messages to it.