How can I make a UIDatePicker pop up (animated) after a UIButton is pressed, and then close down again once the date is selected? This is on the iPhone.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Open iOS 11 Files app via URL Scheme or some other
- Keep constant number of visible circles in 3D anim
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- Can not export audiofiles via “open in:” from Voic
Yes, sir. Thanks for helping me procrastinating.
I added some comments for clarity correct me if I'm wrong (I recently started developing for iOS). Thanks Matthias Bauch! Your code example already helped me out a lot and provided lot's of insight. I hope these comments will do the same for others.
I'd propose the following (good for iOS 3.2 or better).
Below is some code to show steps 2-4: (I hope I didn't forget anything in the copy/paste process...
1+3 Creating UIDateTimePicker as the text filed input view, and attaching to it a toolbar with "Done" button...
Good luck...
Here is a Swift (1.2) version of @Reuven's code