title: Fire a segue conditionally to multiple View Controllers
body: <p>After struggling for days on firing a segue conditionally, I managed to solve it thanks to <a href="https://stackoverflow.com/users/904946/simon">Simon</a>'s answer <a href="https://stackoverflow.com/a/7865100/1077789">here</a>. Please take a moment to have a look or you might not understand what I'm talking about below. I didn't copy paste his answer because he's already explained it nicely over there.</p>
  
  <p>Now I've faced a new question. What if I have multiple View Controllers that I want to segue to from one View Controller?</p>
  
  <p>To explain it further : Say I have one <code>MainViewController</code> with 2 buttons. When clicked upon each button, it should segue to their respective View Controller. First button to <code>FirstViewController</code> and the second button to <code>SecondViewController</code>.</p>
  
  <p>The method described in Simon's answer can be used when you segue from one View Controller to another View Controller. Since in that method, you tie the segue to the View Controller itsrlf and not to the button, you have only one segue with an identifier for that particular View Controller. Therefore I cannot distinguish between the button taps separately. </p>
  
  <p>Is there a workaround to solve this problem?</p>
  
  <p>Thank you.</p>