开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜