Move to another Viewcontroller via RightBarButtonItem
<p>I have the following situation:</p>

<p>I have created a rightBarButtonItem in my <code>viewDidLoad:</code></p>

<pre><code>self.navigationItem.rightBarButtonItem = UIBarButtonItem.init(title: "New", style: .Plain, target: self, action: "newProject")
</code></pre>

<p>My question is, how can I move through tapping this button programmatically to another Viewcontroller, using the segue "show (e.g push)". </p>

<p>I have the beginning like this:</p>

<pre><code>func newProject() {

}
</code></pre>

<p>But I don't know further, because I'm a beginner in Swift.</p>

<p>Any help would be really appreciated!</p>

<p><strong>Update:</strong></p>

<p>So, this is the whole area, where the error appears:</p>

<pre><code>class NewProject: UIViewController, UITextFieldDelegate, UITextViewDelegate, CustomPickerDelegate {

    @IBOutlet weak var txtProjectName: UITextField!
    @IBOutlet weak var tvDescription: UITextView!
    @IBOutlet weak var txtStartDate: UITextField!
    @IBOutlet weak var txtEndDate: UITextField!

    var hud: MBProgressHUD?
    var customPicker: CustomPickerView?
    var dictProject: NSDictionary!
    var projectID: String!

    override func viewDidLoad() {
        super.viewDidLoad()

        self.navigationItem.title = "Create new Project"
        self.hud = MBProgressHUD(view: self.view)
        self.view.addSubview(self.hud!)
        self.projectID = ("\(self.dictProject!["id"]!)")
        self.populateFields()
    }
    func populateFields() {
        if nil != self.dictProject!["name"] {
            self.txtProjectName.text = self.dictProject!["name"] as? String
        }

    }
</code></pre>

<p>And the error appears on this line here:</p>

<pre><code>self.projectID = ("\(self.dictProject!["id"]!)")
</code></pre>

<p>And this line here:</p>

<pre><code>    if nil != self.dictProject!["name"] {
</code></pre>