How can I make two actions with the same button?

In my app I am activating the camera with a button and what i want it to do is when i take the photo it goes to another view controller, I manage to do that very easily with two buttons, one takes the picture the other one is the segue, but i want it on one simple button.

What do you want to do exactly :

- 2 actions in sequence with one click in the first button ? Then just put the code of the second button IBAction at the end of the first button IBAction

you can also keep 2 buttons, the segue being hidden behind the first ; in the IBAction of the first (that takes photo), call the IBAction of the segue button with the segue button as parameter

- or, you want the button to change its action after the photo is taken with a second click ?

then, you can use the button tag, that you change once the photo is taken ; in the IBAction, you test the tag value to do either first of second action

How can I make two actions with the same button?
 
 
Q