开发者

What is the default width of a UIPickerView component?

开发者 https://www.devze.com 2023-01-11 07:09 出处:网络
Should be simple to find out right? Where in the Apple docs does it list any default values for various UI components?

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

精彩评论

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