title: Hide Custom TabBarController using Three20 SDK in photo gallery
body: <p>I created a custom tabbar which is a subclass of <code>UITabbarController</code>. There is an <code>UIImageView</code>, nsarray and five <code>UIButton</code> in my tabbar. I set each button with different images, then set the array with the buttons. </p>
  
  <p>In the appDelegate .m file i created instances of 5 different class and their navigation controllers. Set the <code>UITabbarController's</code> viewcontrollers with the array of instances.</p>
  
  <p>Everything is fine and works well. I used Three20 sdk for the photo gallery. Using     <br><code>self.hidesBottomBarWhenPushed = YES;</code>
  <br>code row, hides the original tabbar of ios sdk, but I could not hide my custom tabbar when the photo will be displayed.</p>
  
  <p>Any suggesstion will be appreciated.</p>
  
  <hr>
  
  <p>My system works like that : In mainViewController class there is 10 gallery pictures. When i click one of them app goes to PhotoTest2Controller class and the clicked gallery pictures are listed. When i click a photo, it displays bigger.</p>
  
  <p>i did a few changes on my class which is a subclass of TTThumbsViewController, named PhotoTest2Controller. </p>
  
  <p>But the tabbar is visible when i open the gallery and photos. In PhotoTest2Controller class, i did the below changes in viewDidAppear.</p>
  
  <pre><code>TTNavigator *navigator = [TTNavigator navigator];
  </code></pre>
  
  <p><code>navigator.persistenceMode = TTNavigatorPersistenceModeAll;</code>
  <code>navigator.window = [[[UIWindow alloc] initWithFrame:TTScreenBounds()] autorelease];</code></p>
  
  <pre><code>TTURLMap *map = navigator.URLMap;
  [map from:@"tt://order?waitress=(initWithWaitress:)" toModalViewController:[PhotoTest2Controller class]];
  </code></pre>
  
  <p>what can i do now ?</p>