What is the default width of a UIPickerView component?
Should be simple to find out right? Where in the Apple docs does it list any default values for various UI components?
I've tried calling the protocol's method:
CGFloat width = 开发者_Go百科[self pickerView:pickerView widthForComponent:0];
...but no luck. How do i find out this default value?
I haven't tried this before but maybe...
viewForRow:forComponent: http://developer.apple.com/iphone/library/documentation/uikit/reference/UIPickerView_Class/Reference/UIPickerView.html#//apple_ref/occ/instm/UIPickerView/viewForRow:forComponent:
then get the width from the UIView returned
精彩评论