Present UIViewController in swift from storyboard or XIB
If you want to present UIViewController in swift from storyboard . For example :-
FirstViewController.swift is a viewcontroller in your Storyboard with storyboard Identifier FirstViewController then to present this viewcontroller use this code.
- let captureViewCon:UIViewController = (self.storyboard?.instantiateViewControllerWithIdentifier(“FirstViewController”))!
Read full blog about Present UIViewController in swift from storyboard or XIB at Findnerd.
Read more about Findnerd-A Social Network for Developers.