title: How to display the data in uibutton when user did select row in pickerview in iphone
body: <p>I am new to iphone i have a small doubt in picker views that is I take a picker view and store some data in it when i select a row in picker view the text in that row should display in uibutton which i have placed but the problem is the first three letters in the text only displays.I dont know why it is this is the code below i have written</p>
  
  <pre><code>-(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component{
      if([pickerView isEqual:selectBookPickerView]){
      NSString *booksTitle = [[NSString alloc] initWithFormat:@"%@",[booksArray objectAtIndex:row]];
      selectBook.titleLabel.text = booksTitle; 
      }
      else
      {
      NSString *chapterTitle = [[NSString alloc] initWithFormat:@"%@",[chaptersArray objectAtIndex:row]];
          startChapter.titleLabel.text = chapterTitle; 
  
      }
  }
  </code></pre>