简体   繁体   English

行为类似于iPhone中的日历应用程序

[英]Behavior like calendar app in iphone

In the calendar app in the iphone, when you click in the starts/end cell, the picker is already fill with data with no delay? 在iPhone的日历应用程序中,当您单击开始/结束单元格时,选择器已经没有任何延迟地填充了数据?

How? 怎么样?

Your question is not very clear. 您的问题不是很清楚。 If you're asking how a UIPickerView can start with a certain value selected, you simply need to use UIPickerView's -selectRow:inComponent:animated: with animated set to NO within -loadView in your UIViewController (or whatever method fires when the view is presented on the screen). 如果您询问UIPickerView如何以选定的特定值开始,您只需要使用UIPickerView的-selectRow:inComponent:animated:在UIViewController的-loadView中将动画设置为NO即可(或显示视图时触发的任何方法)屏幕上)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM