Tuesday, May 22, 2012

Default value for height and width of components in UIPickerView

What is the default value of the height and width of the components in UIPickerView? ie., what is the value that iOS uses as height and width for the below, if the application has not implemented these methods?



pickerView:widthForComponent:
pickerView:rowHeightForComponent:


I tried the suggestion from the thread :
What is the default width of a UIPickerView component?
But that would give an array out of bound exception:



Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSMutableArray objectAtIndex:]: index 0 beyond bounds for empty array'


Any help appreciated.





No comments:

Post a Comment