Objective C implementing a UIPickerView with a “Done” button
问题 I am trying to implement a "Done" button in a UIPickerView Similar to the one under this link I looked in the class reference but I couldn t find it Thanks 回答1: I added a UIToolbar with a UIBarButtonItem for the 'done' button in my xib with the frame set so that it's not initially visible (y value equal to the height of the parent view). Every time the user access the picker, I changed the frame (the y value) of the UIDatePicker and the UIToolbar with an animation so that it slides up along