本文介绍了如何在UIPickerView标签旁边获得复选标记?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Safari中显示的 UIPickerView 在当前选择旁边有一个复选标记。有一个内置的方法来获得这个,或者我必须自己编程?如果我必须创建它,任何人都可以点我一些代码来做这个?感谢

The UIPickerView that appears in Safari has a check mark beside the current choice. Is there a built-in way to get this, or do I have to program it up myself? If I do have to create it, can anyone point me to some code to do this? Thanks

推荐答案

您需要实施 $ b $

You need to implement -pickerView:viewForRow:forComponent:reusingView: from the UIPickerViewDelegate.

您必须创建一个视图,其中包含带有复选标记图像的UIButton,并从 -pickerView:viewForRow:forComponent:reusingView:

You have to create a view, that contains a UIButton with the checkmark image, and return it from -pickerView:viewForRow:forComponent:reusingView:

这篇关于如何在UIPickerView标签旁边获得复选标记?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!