title: UIButton not changing title in iPhone
body: <p>button is not changing the title. When I first click it changes the title but when I hide the table then it does not show the title on button. I don't know why in <code>NSLog</code> it shows title but do not show on button</p>
  
  <pre><code>-(IBAction)btnClicked
  {
      if (flag==1) 
      {
          flag=0;
          tblSimpleTable.hidden=NO;
          [i setImage:[UIImage imageNamed:@"UpArrow.png"]];
      }
      else
      {
          flag=1;
          tblSimpleTable.hidden=YES;
          NSLog(@"This is title %@",title);
          btn.titleLabel.text=title;
          [i setImage:[UIImage imageNamed:@"downArrow.png"]];
      }
  }
  </code></pre>