xcode add a button to my storyboard navigation item? -


i have in storyboard:

enter image description here

i add new button next 'community button'

but when try add new button bar item, replaces button there. how this?

enter image description here

and when try add 'button' not let me add bar button item - item:

enter image description here

i don't know how using storyboard can done in code follows.

in viewdidload method of completionvc following:

  1. create uibarbuttonitem community
  2. create uibarbuttonitem add
  3. add buttons navigationitem using:

    self.navigationitem.rightbarbuttonitems = [nsarray arraywithitems:community, add, nil];


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -