title: How to set an action for an UIBarButtonItem?
body: <p>I try to set an action for an UIBarButtonItem like I did before with a normal button:</p>
  
  <ol>
  <li>Select the UIBarButtonItem in storyboard.</li>
  <li>Right-Click and pull to my .h-file</li>
  <li><p>Change to action and choose UIBarButtonItem and give the action a name.</p>
  
  <pre><code>    - (IBAction)haupt:(UIBarButtonItem *)sender;
  </code></pre></li>
  <li><p>Write some code in the function at my .m-file.</p>
  
  <pre><code>- (IBAction)haupt:(UIBarButtonItem *)sender {
      NSLog(@"button");
  
  
      }
  </code></pre></li>
  </ol>
  
  <p>Now I try this in the simulator, but nothing happens (No output on the console). What I am doing wrong?</p>