I have some buttons in my app interface that act like this
let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
let nextVC = storyBoard.instantiateViewControllerWithIdentifier("customVC") as! customVC
self.presentViewController(nextVC, animated:true, completion:nil)
When user presses them - the new ViewController is shown and everything is ok except one thing - I think that previous ViewController is still in memory. How can i clear it?