我想在用户按下UI按钮时,仅使用Swift中的代码,从ViewController转换到secondViewController.
//Function to transition
func transition(Sender: UIButton!)
{
//Current Code, default colour is black
let secondViewController:UIViewController = UIViewController()
self.presentViewController(secondViewController, animated: true, completion: nil)
}