title: Getting warning like Presenting view controllers on detached view controllers is discouraged
body: <p>When I'm trying  to select images from camera rolls, I'm getting the following warning. (when I press the button camera rolls it goes to select albums page where we can select images from our phone).</p>
  
  <blockquote>
    <p>Presenting view controllers on detached view controllers is
    discouraged</p>
  </blockquote>
  
  <p>My <code>didFinishLaunchingWithOptions</code> method is like this:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  
  
      [application setStatusBarHidden:YES];
      NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
      [userDefault synchronize];
  
      self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
      self.viewController = [[ViewController alloc] init];
      UINavigationController *navigation = [[UINavigationController alloc] initWithRootViewController:self.viewController];
      self.window.rootViewController = navigation;
      navigation.navigationBarHidden = YES;
  
      [self.window makeKeyAndVisible];
  }
  </code></pre>
  
  <p>My camera button code is: </p>
  
  <pre><code>- (void)cameraButtonSelected
  {
  
  ELCAlbumPickerController *albumController = [[ELCAlbumPickerController alloc] initWithNibName:nil bundle:nil];
  ELCImagePickerController *elcPicker = [[ELCImagePickerController alloc] initWithRootViewController:albumController];
  [albumController setParent:elcPicker];
  [elcPicker setDelegate:self];
  
  AppDelegate *app = (AppDelegate *)[[UIApplication sharedApplication] delegate];
  
  [app.viewController presentViewController:elcPicker animated:YES completion:nil];
  [self.view.window.rootViewController.navigationController pushViewController:elcPicker animated:YES];
     }
  </code></pre>