title: How to open a ViewController before application starts in iOS
body: <p>I am working in iOS 5,and before loading my application,I want to open a another view controller,where the user should enter some data,for eg.password and when the password matches ,application will be opened,I am not getting how to do this..I tried some code ,which I have written below</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {   
      if(somecondition)
      {       
          ViewController *View =[[ViewController alloc]initWithNibName:@"ViewController" bundle:nil]; 
          [_window addSubview:View.view];
      }
  
      return YES;
  }
  </code></pre>
  
  <p>But I dont know whether it is a right way,so friends,please help me out..</p>
  
  <p>Regards
  Ranjit </p>