title: How to set the height of the pickerview in iPhone (iOS)?
body: <p>I have a problem regarding on how to set the height of <code>UIPickerView</code>.</p>
  
  <p>I have a code in setting the width.</p>
  
  <p>This,</p>
  
  <pre><code>- (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component {
  return 280;
  }
  </code></pre>
  
  <p>Looks fine,</p>
  
  <p>But how i Can change the height? I am new to iOS. please help me.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have done something like this.</p>
  
  <pre><code>CGAffineTransform s0 = CGAffineTransformMakeScale(1, 0.7);
  CGAffineTransform t1 = CGAffineTransformMakeTranslation(0,0);
  picker.transform = CGAffineTransformConcat(s0, t1);
  </code></pre>
  
  <p>But it squishes the <code>UIPickerView</code>. Is there any better way to do this?</p>