Present a modal view controller with transparent background
Suppose, we’re in FirstViewController //Obj-C – (void) presentSecondVC { SecondViewController *vc = [[SecondViewController alloc] init]; [self addChildViewController:vc]; [self didMoveToParentViewController:vc]; } //Swift func presentSecondVC() { let vc = SecondViewController.init() self.addChildViewController(vc) self.didMove(toParentViewController: vc) } Some of you may need to write above method like this, //Obj-C – (void) presentSecondVC { SecondViewController *vc = [[SecondViewController alloc] init]; vc.view.frame … Read more