title: UIButton is crashing the application
body: <p>Added <code>UIButton</code> to app</p>
  
  <pre><code>UIButton *playButton = [UIButton buttonWithType:UIButtonTypeCustom];
  
  [playButton addTarget:self action:@selector(play:) forControlEvents:UIControlEventTouchUpInside];
  
  UIImage *image = [UIImage imageNamed:@"play.png"];
  
  [playButton setImage:image forState:UIControlStateNormal];
  </code></pre>
  
  <p>when i run the application it is crashing and message is <code>UIButtonView unrecognized selector</code></p>
  
  <p>Did exception breakpoint </p>
  
  <p>Found that it is crashing at</p>
  
  <pre><code>[toolbar setItems:toolbarItems];
  </code></pre>
  
  <p>I think i m not adding <code>UIButton</code> properly to <code>toolbar</code></p>
  
  <pre><code>//Add buttons to the array
  
  NSArray *toolbarItems = [NSArray arrayWithObjects: settingsButton, flexItem, rewind, flexItem, playButton, flexItem, pause, flexItem, modalBarButtonItem, nil];
  
   [toolbar setItems:toolbarItems];
  </code></pre>
  
  <p>Anyideas to fix this one.</p>
  
  <p>Thanks for help.</p>