How do you shrink a UIPickerView on the iPhone?
问题 I would like to reduce the height of a UIPickerView in my iPhone app, so that it shows only one row and one column. The height of the picker view should be equal to the height of a row. I\'m using Interface Builder to construct the UIPickerView , but I can\'t find an easy way to re-size this control. How do you shrink a UIPickerView ? 回答1: Actually, you can slightly shrink the whole UIPickerView by applying an affine transform to an enclosing view. For example: CGSize pickerSize = [pickerView