title: ios bar button item on a table view controller
body: <p>I am new to ios programming working on my first app. I have a tab bar controller with two tabs A and B. Both tabs are connected to table view controller with some data being shown. I want to add a bar button item on the top left "navigation" bar of the table. This would be a slide bar menu navigation item as shown in figure below
  <img src="https://i.stack.imgur.com/S9RR8.png" alt="enter image description here"></p>
  
  <p>However, even though in my storyboard the menu bar button item shows up (as shown in the pic), when I run the program, the table corresponding to tab "A" that gets displayed does not show the menu item.</p>
  
  <p><strong>UPDATE:</strong> Solution (see the marked answer and comments) -Basically, you need to embed the table view controller in navigation view controller, set "Top bar" to "Navigation Bar" and then you can add a bar button item.</p>
  
  <p><strong>UPDATE 2</strong> - Setting the top bar to "Navigation Bar" in attributes of the table view controller is optional.</p>