美文网首页
20170314: 选择器,仿安卓<我去>

20170314: 选择器,仿安卓<我去>

作者: plantAtree_dAp | 来源:发表于2017-03-14 11:55 被阅读16次
Simulator Screen Shot 2017年3月14日 上午11.29.23.png

解决

//指定列的宽度
- (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component
{
    // 宽度
    return kScreenWidth/2;
}

相关文章

网友评论

      本文标题:20170314: 选择器,仿安卓<我去>

      本文链接:https://www.haomeiwen.com/subject/shncnttx.html