0 votes
1.3k views
asked in Objective C by (8.2k points)

Hi

   I have a button in a toolbar. How can I grab its frame? Do UIBarButtonItems not have a frameproperty?

1 Answer

0 votes
answered by (4k points)

-(IBAction)actionMenuButtonPressed:(id)sender

{

    UIBarButtonItem *item = sender;

    UIView *view = [item valueForKey:@"view"];

    if(view){

        CGPoint point = view.frame.origin;

        

    }

}

Categories

...