Reputation: 4375
I have a button inside UINavigation
Bar Button Item
This is my expectation but really what happens is that button width getting depressed ,how to over come from this constant width ? any idea friends .
Upvotes: 0
Views: 35
Reputation: 3395
Set your button as rightBarButtonItem programatically.
UIBarButtonItem *rightbutton = [[UIBarButtonItem alloc] initWithTitle:@"Button Title here" style:UIBarButtonItemStyleDone target:self action:@selector(buttonTapped:)];
self.navigationItem.rightBarButtonItem = settingButton;
Upvotes: 0
Reputation: 761
Did you try to increase the width of the UIButton in the Size Inspector?
Upvotes: 1