I'm using custom URL scheme to open my app. My code below is used to open a view from the tabbar. But how should I open a specific view.
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
if ([url.host isEqual: @"main"])
{
UITabBarController *tab = (UITabBarController *)self.window.rootViewController;
tab.selectedIndex = 0;
}