Is the UIPicker that pops up from the bottom of the screen when an action is called just a basic UIPickerView that is coordinated in a certain way? (Like a UIActionSheet?) How would I implement that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s animation code, that I use:
datePickerView is a view, that contains DatePicker:
parentViewController should implement addSubviewToWindow method:
UIColorMakeRGBA:
slideDownDidStop is a method, that will be called after datePicker slide down successfully.
So, just to summarize – you have MyViewController, that have
field.
MyDatePickerView is a custom class, that have UIDatePicker *datePicker field, MyViewController *parentViewController and animateDatePicker method.
When you perform some action on MyViewController (for example, UIControlEventTouchUpInside for some button), you should invoke
Please let me know if you have questions.
UPDATE:
Here’s a small example.