https://github.com/YouXianMing

自定义UIPickView

效果图

 

源码

https://github.com/YouXianMing/Animations

 

说明

1. 数据适配器PickerViewDataAdapter含有PickerViewComponent的数组以及行高的信息,数组中有几个Component就有几列

2. PickerViewComponent中包含了PickerViewRow的数组,以及列宽的设置

3. PickerViewRow中包含PickerCustomView子类需要的数据以及自定义的PickerCustomView子类的类名,用于创建自定义view使用

4. PickerCustomView类似于UITableViewCell的功能,用来作为基类继承使用,来达到自定义UIPickerView的目的

 

posted @ 2017-09-04 11:33  YouXianMing  阅读(1043)  评论(0编辑  收藏  举报