Kishore Kumar
Kishore Kumar

Reputation: 4375

Why button Widths are conflicts in UINavigationbar?

I have a button inside UINavigation Bar Button Item enter image description here

This is my expectation but really what happens is enter image description here that button width getting depressed ,how to over come from this constant width ? any idea friends .

Upvotes: 0

Views: 35

Answers (2)

rushisangani
rushisangani

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

Kenan Karakecili
Kenan Karakecili

Reputation: 761

Did you try to increase the width of the UIButton in the Size Inspector?

enter image description here

Upvotes: 1

Related Questions