gpt4 book ai didi

iPhone UIPickerView : Change selector height

转载 作者:行者123 更新时间:2023-12-03 20:28:57 25 4
gpt4 key购买 nike

是否可以更改选择器 View 上的选择器高度?

谢谢

最佳答案

在您的选择器委托(delegate)中实现此功能

pickerView:rowHeightForComponent:

来自UIPickerViewDelegate Reference :

Called by the picker view when it needs the row height to use for drawing row content.

- (CGFloat)pickerView:(UIPickerView *)pickerView rowHeightForComponent:(NSInteger)component
  • Parameters

    pickerView - The picker view requesting this information.

    component - A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right.

    Return Value - A float value indicating the height of the row in points.

关于iPhone UIPickerView : Change selector height,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4991795/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com