Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing UIPickerView row height

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

like image 954
Paul Woidke Avatar asked Jun 18 '11 18:06

Paul Woidke


Video Answer


1 Answers

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

like image 50
Wayne Hartman Avatar answered Nov 22 '22 08:11

Wayne Hartman