0

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 .

Kishore Kumar
  • 4,265
  • 3
  • 26
  • 47

2 Answers2

1

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

enter image description here

Kenan Karakecili
  • 731
  • 6
  • 23
0

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;
rushisangani
  • 3,195
  • 2
  • 14
  • 18