How do you send a command between views?

Discussion in 'iOS Programming' started by tombuarts, Oct 2, 2010.

  1. tombuarts
    Expand Collapse
    macrumors newbie

    Jan 30, 2010
    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?
  2. robbieduncan
    Expand Collapse
    Moderator emeritus


    Jul 24, 2002
    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.

Share This Page