title: How to do a bottom UIToolbar with AutoLayout?
body: <p>I'm trying to add a <code>UIToolbar</code> to the bottom of a screen within my app. But I'm having some difficulties.</p>
  
  <p>This is the code:</p>
  
  <pre><code>self.toolBar = [[UIToolbar alloc] initWithFrame:CGRectMake(0.0f, self.view.frame.size.height-44.0f, self.view.frame.size.width, 44.0f)];
  self.toolBar.backgroundColor = [UIColor whiteColor];
  [self.view addSubview:self.toolBar];
  </code></pre>
  
  <p>However, when the device is rotated the <code>UIToolbar</code> is offscreen. How do I use <code>NSAutoLayout</code> solve this? </p>