当前位置:K88软件开发文章中心编程语言APP编程CrossApp → 文章内容

CAPickerViewDelegate

减小字体 增大字体 作者:佚名  来源:网上搜集  发布时间:2019-1-23 13:52:29

由 ?﹏???ζ???﹏﹏? 创建, 最后一次修改 2016-09-08 类说明 CAPickerView的滚动事件的代理CAPickerViewDelegate 方法(点击查看方法介绍)方法说明numberOfComponentsInPickerView获取PickerView的Component数量numberOfRowsInComponent获取PickerView的Component行数widthForComponentPickerView的Component宽度rowHeightForComponentPickerView的Component高度titleForRowPickerView的Row标题viewForRowPickerView的背景图像viewForSelectPickerView的选中时图像CAPickerViewDelegate 方法说明virtual unsigned int numberOfComponentsInPickerView(CAPickerView* pickerView) = 0; 返回值:unsigned int参数:类型参数名说明CAPickerView* pickerView当前pickerView解释:获取PickerView的Component数量virtual unsigned int numberOfRowsInComponent(CAPickerView* pickerView, unsigned int component) = 0;返回值:unsigned int参数:类型参数名说明CAPickerView* pickerView当前pickerViewunsigned intcomponent当前选中的component解释:获取PickerView的Component行数virtual float widthForComponent(CAPickerView* pickerView, unsigned int component) {return 0;}返回值:float参数:类型参数名说明CAPickerView* pickerView当前pickerViewunsigned intcomponent当前选中的component解释:PickerView的Component宽度virtual float rowHeightForComponent(CAPickerView* pickerView, unsigned int component) {return 0;}返回值:float参数:类型参数名说明CAPickerView* pickerView当前pickerViewunsigned intcomponent当前选中的component解释:PickerView的Component高度virtual const char* titleForRow(CAPickerView* pickerView, unsigned int row, unsigned int component) {return NULL;}返回值:const char*参数:类型参数名说明CAPickerView* pickerView当前pickerViewunsigned introw当前选中的rowunsigned intcomponent当前选中的component解释:PickerView的Row标题virtual CAView* viewForRow(CAPickerView* pickerView, unsigned int row, unsigned int component) {return NULL;}返回值:CAView* 参数:类型参数名说明CAPickerView* pickerView当前pickerViewunsigned introw当前选中的rowunsigned intcomponent当前选中的component解释:PickerView的背景图像virtual CAView* viewForSelect(CAPickerView* pickerView, unsigned int component, const DSize& size) {return NULL;}返回值:CAView* 参数:类型参数名说明CAPickerView* pickerView当前pickerViewunsigned intcomponent当前选中的componentconst DSize&size图像大小解释:PickerView的选中时图像

CAPickerViewDelegate