title: Problems with adding UIPickerView and UIToolBar to UIActionSheet
body: <p>I am quite new to coding iOS, hope you can help me with this, thank you.</p>
  
  <p>I've added an <code>UIToolBar</code> with some <code>UIBarButtonItem</code> and an <code>UIPickerView</code> to the xib, and want to add them into an <code>UIActionSheet</code> in code. The <code>UIToolBar</code>, <code>UIBarButtonItem</code>, <code>UIPickerView</code> and <code>UIActionSheet</code> are properties and I do it like:</p>
  
  <pre><code>_pickerView.frame = CGRectMake(0, 40, 320, 216);
  [_actionSheet addSubview:_toolBar];
  [_actionSheet addSubview:_pickerView];
  </code></pre>
  
  <p>As you can see in the image below, there are some problems with it:</p>
  
  <ol>
  <li>the <code>UIBarButtonItem</code>s are missing</li>
  <li>the <code>UIToolBar</code> should be in black</li>
  <li>the <code>UIPickerView</code> seems too big that the right side is missing</li>
  </ol>
  
  <p>I know I can do all of this programmatically, but I think it's better to put UI stuff in xib. Can anyone tell me how to fix it.</p>
  
  <p><img src="https://i.stack.imgur.com/yBa0l.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/gITl0.png" alt="enter image description here"></p>