开发者

Is it possible get the event user's rolling UIDatePicker items?

开发者 https://www.devze.com 2023-02-05 21:32 出处:网络
I hope to get the event when开发者_JAVA百科 user is rolling UIDatePicker items. Is it possible? Welcome any comment

I hope to get the event when开发者_JAVA百科 user is rolling UIDatePicker items. Is it possible?

Welcome any comment

Thanks

interdev


From the UIDatePicker Class Reference

When properly configured, a UIDatePicker object sends an action message when a user finishes rotating one of the wheels to change the date or time; the associated control event is UIControlEventValueChanged. A UIDatePicker object presents the countdown timer but does not implement it; the application must set up an NSTimer object and update the seconds as they’re counted down.

Code:

 [myDatePicker addTarget:self action:@selector(valueChanged:) forControlEvents:UIControlEventValueChanged];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号