Alex Rivera | Logout

Resize UIBarButtonItem in code

Asked 2011-08-05T00:55:41.273
10

How do I resize a UIBarButtonItem in the code?

Edit
Report

1 Answer

18

You can't resize a UIBarButtonItem as you would a UIView. What you can do is change its width property.

UIBarButtonItem *b;
// Initialize and such ...
b.width = 150.0;

This should work for a Fixed Space Bar Button Item.

answered 2011-08-05T03:02:50.947

Your Answer