title: Opening app with custom url scheme in ios app
body: <p>I have two url scheme, say, openView1:// and openView2:// . Now, when i click to openView1://, i want to pen view1. When i click to openView2://, i want to pen view2.</p>
  
  <p>I did like following at appDelegate.m</p>
  
  <pre><code> #import "Welcome_ResetPassword.h"
   @implementation AppDelegate
  
   - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:     (NSString *)sourceApplication annotation:(id)annotation { 
   isopenView1= FALSE; //    isopenView1 is global varaible define in appDelegate.h 
   isopenView2= FALSE; // isopenView1 is global varaible define in appDelegate.h 
   if ([[url scheme] isEqualToString:@"openView1"]) {
      isopenView1= TRUE;
      return isopenView1; 
  }
  else{
      isopenView2= TRUE;
      return isopenView2; 
  }
  </code></pre>
  
  <p>}</p>
  
  <p>now,</p>
  
  <pre><code> - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
   {
   if ( isopenView1) {
      //show view1 as app start 
   }else{
     //show view2 as app start 
   }
  }
  </code></pre>
  
  <p>This is not working. How can I achieve it?</p>