Possible Duplicate:
Passing variables between view controllers
Let's say I have 3 buttons in the same ViewController(FirstController) with tags from 1-3. All three buttons opened a new ViewController(SecondController). But how can I, in the SecondController, check what button was pressed to get here, or maybe what segue was used? So the SecondController can perform different depending on which button was pressed to open it. I was maybe thinking about a switch and case.
 
     
     
    