Showing posts with label using xib. Show all posts
Showing posts with label using xib. Show all posts

Tuesday, 16 February 2016

Present UIViewController in swift from storyboard or XIB


customswift.jpg
Hi All,
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.

  1. let captureViewCon:UIViewController = (self.storyboard?.instantiateViewControllerWithIdentifier("FirstViewController"))!