UIBarButtonItem does not extend UIView, so there is nothing like a frame property.
UIBarButtonItem
UIView
But is there any way I can get what is it\'s CGRec
CGRec
I handled it as follows:
- (IBAction)buttonClicked:(UIBarButtonItem *)sender event:(UIEvent *)event { UIView* view = [sender valueForKey:@"view"]; //use KVO to return the view CGRect rect = [view convertRect:view.bounds toView:self.view]; //do stuff with the rect }