xydev
xydev

Reputation: 3409

Custom UIPickerView - Increase the no of items shown without scrolling

Picker normally shows 5 items without scrolling. Is there a way to increase the size of the picker to show up to 8 items without scrolling. Please help.

Upvotes: 0

Views: 291

Answers (1)

Dave DeLong
Dave DeLong

Reputation: 243156

Kind of. UIPickerViews can only be a certain number of points tall (easy enough to find out what those are yourself), but you can fiddle around with the height of the items in the UIPickerView using the -pickerView:rowHeightForComponent: delegate method. If you return a small enough number, you could fit about 200 items in a UIPickerView all at once. They'd all be a single point tall, but you get the idea...

Upvotes: 1

Related Questions