title: Need to add common UIBarButtonItem across all VCs
body: <p>Following is piece of code which is not working:</p>
  
  <pre><code>class Person {
  
          static fun addBtn(cName:UIViewController)
          {
             let rightBtn = UIBarButtonItem.init(title: "Right", style: .Plain, target: UIBarButtonItem.self, action:#selector(UIBarButtonItem.self.newMenuTapped(_:)))
             cName.navigationItem.rightBarButtonItem  = rightBtn
          }
  
      }
      extension UIBarButtonItem
      {
  
          func newMenuTapped(sender: UIBarButtonItem)
          {
          print("Tapped")
          }
  
      }
  </code></pre>
  
  <p>Crashes with this error:</p>
  
  <blockquote>
    <p>Terminating app due to uncaught exception
    'NSInvalidArgumentException', reason: unrecognized selector sent to
    class 0x14c830</p>
  </blockquote>
  
  <p>Can someone guide be as to what I am doing wrong? Thanks.</p>