title: How to insert UIImagePickerController inside UITabbarController
body: <p>I have an app that is based on <code>UITabBarController</code>. It has 3 tabs. In the first tab(default when app is launched), <code>UIImagePickerController</code> will be shown to select a album. But the problem is: <code>TabBar</code> will be covered by <code>UIImagePickerController</code>. How to insert <code>UIImagePickerController</code> inside the <code>UITabBarController</code>? Help is much appreciated. Here is my code:</p>
  
  <p>// the first tab's <code>viewController.m</code> </p>
  
  <pre><code>- (void)loadView 
  {
  
      self.navigationController.navigationBar.barStyle = UIBarStyleBlack;
      UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
      imagePicker.delegate = self;
      [self presentModalViewController:imagePicker animated:NO];
      [imagePicker release];
  
  }
  </code></pre>
  
  <p>After try again, I modify some code as follows, the tab bar can be shown, but it couldn't been clicked. how to do?</p>
  
  <pre><code>- (void)loadView 
  {
  
      self.navigationController.navigationBar.barStyle = UIBarStyleBlack;
      UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
      imagePicker.delegate = self;
      imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
      [self presentModalViewController:imagePicker animated:NO];
      CGRect rect = CGRectMake(imagePicker.view.frame.origin.x,        
                               imagePicker.view.frame.origin.y, 
                               imagePicker.view.frame.size.width, 
                               imagePicker.view.frame.size.height-self.tabBarController.tabBar.frame.size.height);
  
      imagePicker.view.frame = rect;
      [imagePicker.view addSubview:self.tabBarController.tabBar];
      [imagePicker release];
  
  }
  </code></pre>