美文网首页
iOS UIPickerView的默认显示

iOS UIPickerView的默认显示

作者: 夏天爱西瓜汁 | 来源:发表于2017-11-28 11:13 被阅读753次

    2017.4.18、

    [self.durationPickerselectRow:0inComponent:0animated:YES];//每次显示picker的时候都选中第一行

    [selfpickerView:self.durationPickerdidSelectRow:0inComponent:0];//实现默认选中第一行的点击方法,将第一行的title传给控制器

    相关文章

      网友评论

          本文标题:iOS UIPickerView的默认显示

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