title: How to add a image at the center of navigationBar in Objective-C?
body: <p>I am developing in IOS , I use the following code to set a background to the <code>navigationBar</code>.</p>
  
  <pre><code>[self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"bar-back"] forBarMetrics:UIBarMetricsDefault];
  </code></pre>
  
  <p>And I want to add a image on <code>navigationBar</code> and center of <code>navigationBar</code> like the following picture.</p>
  
  <p><img src="https://i.stack.imgur.com/tFCj0.png" alt="enter image description here"></p>
  
  <p><strong>How to add a image at the center of navigationBar in Objective-C ?</strong></p>
  
  <p>Thanks in advance.</p>