title: Warning: Attempt to present View Controller on * which is already presenting <UISearchController: 0x142a1f7c0>
body: <p>I made a view controller with a <code>UISearchController</code> and a <code>UITableView</code> . There are two different kind of search you can select from the search scope buttons : groups and people. Both searches work and show results on the table. However, if you click on each cell they should direct you to different dynamic pages (a dynamic group page or a dynamic person profile page). The one for groups works, while the one for profiles doesn't. Meaning whenever I click on the a person cell from the results that I got, nothing happens and I get the following warning printed on the console :</p>
  
  <pre><code>Warning: Attempt to present &lt;MyProject.profileView: 0x13e9df000&gt;  on &lt;MyProject.SearchPage: 0x142a1d8f0&gt; which is already presenting &lt;UISearchController: 0x142a1f7c0&gt;
  </code></pre>
  
  <p>If you have any idea why this could be happening it'd be really appreciated if you could let me know.</p>
  
  <p>EDIT : Here's the function that should link the cell to the different view controllers :</p>
  
  <pre><code>func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
  
          if self.searchForGroups {
  
              let detailCell:PFObject = self.filteredGroups.objectAtIndex(indexPath.row) as! PFObject
  
              let vc = self.storyboard!.instantiateViewControllerWithIdentifier("DynamicCellView") as! DynamicCellView
  
              vc.GroupId = detailCell.objectId!
  
              self.presentViewController(vc, animated: false, completion: nil)
  
          }else{
              //Link to use profile
              let user = self.peopleResults[indexPath.row]
              let vc = self.storyboard!.instantiateViewControllerWithIdentifier("ProfileView") as! profileView
              vc.profileId = user.objectId!
              self.presentViewController(vc, animated: true, completion: nil)
          }
      }
  </code></pre>