How do you send a command between views?

Discussion in 'iPhone/iPad Programming' started by tombuarts, Oct 2, 2010.

  1. macrumors newbie

    Joined:
    Jan 30, 2010
    #1
    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. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    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