how to return UIDatePicker
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.
精彩评论