title: Calling Other ViewController opens a black screen
body: <p>I have just begun development of IOS in <code>Swift</code>, and now I am stuck on one thing. What I want is to pass a string value from one <code>ViewController</code> to Other.</p>
  
  <p>1st View Controller</p>
  
  <pre><code>// on TableCell Click
  
  
   func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {       
          CommonFunctions.setDefaults("a", value: arr[indexPath.row])
          let viewController = SecondView(passedData:arr[indexPath.row])
          self.presentViewController(viewController, animated: true, completion: nil)
   }
  </code></pre>
  
  <p>2nd ViewController</p>
  
  <pre><code>var test:String
  
  
  init(passedData:String){
       self.test = passedData
       super.init(nibName: nil, bundle: nil)
  }
  
  required init?(coder aDecoder: NSCoder) {
      fatalError("init(coder:) has not been implemented")
  }
  
  override func viewDidLoad() {
      super.viewDidLoad()
      print(CommonFunctions.getDefaults("a"))
  }
  </code></pre>
  
  <p>I am successfully getting the String in 2nd <code>ViewController</code> but the problem is that i am getting a black screen.</p>