NSNotificationCenter addobserver not calling the selector method in SWIFT
<p>I know that this question has been asked quite many times but I am damn tired of searching for this error but couldn't make it.</p>

<p>I have a scenario in which I am moving from one viewController to another i.e (VC1->VC2). I am using NSNotificationCenter to pass some data to the other VC.</p>

<p><strong>VC1 -</strong> </p>

<pre><code>@IBAction func sendNotfctn(sender: AnyObject)
    {
        NSNotificationCenter.defaultCenter().postNotificationName("MY NOTIFICATION", object: self)
         performSegueWithIdentifier("Go", sender: self)//Here I move to VC2. 
    }
</code></pre>

<p><strong>VC2</strong></p>

<pre><code>override func viewDidLoad()
    {
        super.viewDidLoad()


        NSNotificationCenter.defaultCenter().addObserver(self, selector: "actOnMyNotification:", name: "MY NOTIFICATION", object: nil)

        // Do any additional setup after loading the view.
    }
func actOnMyNotification(notification:NSNotification)
    {
        print("I recived the notification!")
    }
</code></pre>

<p>But my selector method is not called. What problem or what error am I making?</p>

<p><strong>Version used -</strong>  XCode 7.2, SWIFT - 2.1.1</p>

<p><strong>Update -</strong> </p>

<p>I have VC1 - VC2(embedded in navigation controller). The segue i am using is connected from VC1 to Navigation controller of VC2. So I can't use segue passing for that. </p>

<p>override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?)
    {</p>

<pre><code>    if segue.identifier == "Go"
    {
        let destVC = segue.destinationViewController as! VC1//this line is not possible for my above said case
    }
}
</code></pre>

<p>If any alternatives please suggest.</p>