Changing UIPickerView row height

Paul Woidke picture Paul Woidke · Jun 18, 2011 · Viewed 17.3k times · Source

I'm working on a program for a class I'm taking and part of the program requires a UIPickerView with images in it. I have the picker up and running, but the height of the rows in the picker are still too small, causing the images (100x100) to overlap. I'm looking for a way to change the UIPickerView so that the images will fit in one row, without overlapping. Thanks

Answer

Wayne Hartman picture Wayne Hartman · Jun 18, 2011

In the documentation for the UIPickerView, you have a link to the UIPickerViewDelegate protocol. There is a method that you can implement, pickerView:rowHeightForComponent:.