title: How to set UIToolBarPosition Top or bottom
body: <p>To set UIToolBar background Image I use the below code.</p>
  
  <pre><code>UIToolbar *tool=[[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 100.0)];
  [tool setTintColor:[UIColor darkGrayColor]];
  UIBarButtonItem *btn=[[UIBarButtonItem alloc] initWithTitle:@"Load" style:UIBarButtonItemStyleBordered target:nil action:nil];
  [tool setItems:[NSArray arrayWithObject:btn]];
   UIImage *barImage=[[UIImage imageNamed:@"BarBg.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(27,0,27,0)];
  [tool setBackgroundImage:barImage forToolbarPosition:UIToolbarPositionBottom
                barMetrics:UIBarMetricsDefault];
   [self.view addSubview:tool];
  </code></pre>
  
  <p>This shows the following output</p>
  
  <p>But question arises where is the purple colour background image, which I had set?</p>
  
  <p><img src="https://i.stack.imgur.com/4mVuU.png" alt="enter image description here"></p>
  
  <p>If I change the position top the output changes to </p>
  
  <pre><code>   [tool setBackgroundImage:barImage forToolbarPosition:UIToolbarPositionTop
                    barMetrics:UIBarMetricsDefault];
  </code></pre>
  
  <p>This is what I expect, when setting background image.</p>
  
  <p><img src="https://i.stack.imgur.com/4qIHk.png" alt="enter image description here"></p>
  
  <p>So I don't have any clear idea when to use UIToolBarPositionTop or UIToolBarPositionBottom? </p>