开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜