开发者

how to return UIDatePicker

开发者 https://www.devze.com 2023-03-23 01:19 出处:网络
I made a datePicker using IB.On click of a button I m unhidding the picker.Now what I want is on selection of any row in picker I want to display the selected value on a label & at the a same mome

I made a datePicker using IB.On click of a button I m unhidding the picker.Now what I want is on selection of any row in picker I want to display the selected value on a label & at the a same moment dismiss the picker. Is there any delegate menthod of picker using which I can dismiss the picker and get the selected valu开发者_开发百科e same as textFieldShouldReturn method.


You can get it from "Value Change" event of the datepicker. Use a method to get the value and dismiss the uidatePicker. Note, the event is fired everytime you change the value in the picker.

Refer this tutorial.

0

精彩评论

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