title: Passing Data from to another View Controller without changing view (Swift)
body: <p>I have a searchViewController where I search for users and UITableView gets updated dynamically with user information. The cell for the UITableView is custom - it has a UIImage, the usernameLabel, and a button called "Add".</p>
  
  <p>What I want is that if the user clicks on the add button of the cell, it should pass the user information on that cell (image and username) to  another view controller that has a UITableView that is a friend list.</p>
  
  <p>However, so far the only way I know is by using performSegue to pass the data on to the other viewController holding the friendlist UITable. But by this method, every time I click the add button it segues to the other view controller which I don't want. I want it to stay on the searchViewController when the add button is clicked - I only want the data to be passed.</p>
  
  <p>Is there any way I can do this? Is using NSUserDefaults advisable for passing data of this sort?</p>