title: How to assign Two segues on a table cell in SWIFT?
body: <p>I am totally new at IOS swift and working with android.</p>
  
  <p>Here is my issue :</p>
  
  <p>I'm developing a simple chatting App of IOS. I've already completed android ver and this is a kind of clone.</p>
  
  <p>It has view controllers named VCList, VCMyFriends and VCChat. VCList is my very first view controller and has a table view. Touching a table view cell changes current view controller to VCMyFriends or VCChat.</p>
  
  <p>When I touch a cell, app checks the member counts of the cell, so if it has other members then go to VCChat. If not, VCMyFriends on to invite my friends. Like following pic.</p>
  
  <p><a href="https://i.stack.imgur.com/RagNe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RagNe.png" alt="enter image description here"></a></p>
  
  <p>What I found is, I cannot assign two segues on a cell or split a segue with two ways. So I thought that can I change my VC without a segue? However I could not find any references or tutorial about it.</p>
  
  <pre><code>func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
      if( memberCnt == 0 ) {
          self.presentViewController(VCMyFriends(), animated: true, completion: nil);
      } else {
          self.presentViewController(VCChat(), animated: true, completion: nil);
      }
  }
  </code></pre>
  
  <p>Above is my last try, and failed. It moves somewhere, but shows nothing at all. And if I can, I wish to use segues because have some datas to pass with segue.</p>
  
  <p>Take care.</p>