UIButton is crashing the application
<p>Added UIButton 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 UIButtonview unrecognized selector</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 UIButton properly to toolbar</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>
