简体   繁体   中英

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?

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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