1. Share UIWindow in your AppDelegate
2. In your ViewController, Get the AppDelgate reference with [[UIApplication shareApplication]delegate]
3. Use AppDelegate to access the UIWindow reference
4. Use UIWindow reference to set the rootViewController
[appDelegate.window.rootViewController = viewController]
Github Source