I have a custom URL scheme and i want to open a certain ViewController
which is not the root when i go to this URL. I have been able to do that and what remains is
Your AppDelegate.m should look like this:
#import "TestViewController.h"
@interface AppDelegate ()
@property (strong, nonatomic) TestViewController *viewController;
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.viewController = [[TestViewController alloc]init];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}