how can i detect touch on already selected UIBarButtonItem?
<p>how can i detect touch on already selected UIBarButtonItem?
if i touch UIBarButtonItem , it will be selected..but if i touch the same again,
how can i identify it ? any help please?</p>

<p>the code is as follows.. initWithCustomView:sortToggle in which sortToggle is segmented control...</p>

<pre><code> UIBarButtonItem *sortToggleButtonItem = [[UIBarButtonItem alloc] 
                                         initWithCustomView:sortToggle];
 [sortToggle release];

 UIBarButtonItem *flexibleSpaceButtonItem = [[UIBarButtonItem alloc] 
                  initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace 
                                       target:nil
                                       action:nil];

 NSArray *buttonArray = [NSArrayarrayWithObjects:flexibleSpaceButtonItem, 
                                                 sortToggleButtonItem, 
                                                 flexibleSpaceButtonItem, nil];

 [self setToolbarItems: buttonArray animated:YES];
</code></pre>
