Change width of a UIBarButtonItem in a UINavigationBar in swift
<p>i need to set frame for my navigation bar button in swift 2.0</p>

<p>i tried this code</p>

<pre><code>self.navigationController!.navigationBar.drawRect(CGRectMake(0, 0, 30, 30)) 
</code></pre>

<p>but it won't work </p>

<p>thanks in advance</p>