title: Hide a toolbar programmatically
body: <p>I found a lot of discussion, but anyonw work fine for me.
  I create a toolBar in a viewcontroller :</p>
  
  <pre><code>UIToolbar *toolBar =[[UIToolbar alloc]initWithFrame:CGRectMake(0,[[UIScreen mainScreen]bounds].size.height - 49,[[UIScreen mainScreen] bounds].size.width, 49)];
  
  [toolBar setTranslucent:YES];
  
  UIBarButtonItem *flexibleSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
  
  UIBarButtonItem *buttonfb = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"fb.png"] style:UIBarButtonItemStyleBordered target:self action:@selector(condividiFB)];
  UIBarButtonItem *buttontw = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"twitter.png"] style:UIBarButtonItemStyleBordered target:self action:@selector(condividiTW)];
  
  NSArray *toolbaritems = [NSArray arrayWithObjects:flexibleSpace, buttonfb,flexibleSpace, buttontw,flexibleSpace, nil];
  toolBar.items = toolbaritems;
  
  [self.view addSubview:toolBar];
  </code></pre>
  
  <p>it's OK. the toolbar appers very cute, but i want hide or move it during a scroll.
  i detect the scroll and call a method with the follow solution but doen't work.
  when i try to hide the toolbar, neither.
  i try with a lot of solution that i toke here.
  for esample :</p>
  
  <pre><code>[self.toolBar removeFromSuperview];
  </code></pre>
  
  <p>but nothing;
  another way:</p>
  
  <pre><code>[_toolBar setHidden:YES];
  </code></pre>
  
  <p>neither;</p>
  
  <p>try to move:</p>
  
  <pre><code>self.toolBar.frame = CGRectMake(self.toolBar.frame.origin.x, self.toolBar.frame.origin.y + 100, self.toolBar.frame.size.width, self.toolBar.frame.size.height);
  </code></pre>
  
  <p>nothing works.
  I'm gettin crazy.</p>