Questions tagged [uidatepicker]

The UIDatePicker is a class in the UIKit framework of iOS which represents an graphical object that uses multiple rotating wheels to allow users to select dates and times.

The UIDatePicker class implements an object that uses multiple rotating wheels to allow users to select dates and times. On UIDatePicker, you can find the following methods:

Managing the Date and Calendar

  • calendar property
  • date property
  • locale property
  • setDate:animated:
  • timeZone property

Configuring the Date Picker Mode

  • datePickerMode property

Configuring Temporal Attributes

  • maximumDate property
  • minimumDate property
  • minuteInterval property
  • countDownDuration property
1611 questions
121
votes
13 answers

iOS 7 - How to display a date picker in place in a table view?

In WWDC 2013 video, Apple suggests displaying picker in place in a table view in iOS 7. How to insert and animate a view between table view cells? Like this, from the Apple calendar app:
X.Y.
  • 12,991
  • 9
  • 48
  • 62
109
votes
14 answers

Jquery date picker z-index issue

I have a slideshow div, and I have a datepicker field above that div. When I click in the datepicker field, the datepicker panel show behind slideshow div. And I have put the script…
rubyist
  • 2,918
  • 7
  • 33
  • 59
91
votes
16 answers

jQuery Date Picker - disable past dates

I am trying to have a date Range select using the UI date picker. in the from/to field people should not be able to view or select dates previous to the present day. This is my code: $(function() { var dates = $( "#from, #to" ).datepicker({ …
Harsha M V
  • 50,335
  • 109
  • 326
  • 496
50
votes
5 answers

UIControlEventEditingChanged doesn't get fired when using setText of UITextfield

I am currently trying to track the states of a textfield. I am using a custom datePicker which sets the text via -setText [self.textField setText:[self.dateFormatter stringFromDate:self.date]]; Inside my textFieldDelegate I wrote the following…
Sebastian Boldt
  • 4,947
  • 9
  • 46
  • 60
45
votes
12 answers

Open UIDatePicker programmatically in iOS 14

I have this normal UIDatePicker (sorry that it's not in English, please ignore that): But the problem is that it only appears when I'm pressing the Date Picker: And I wanted to know how to show the Date Picker like in the first image (that it's…
אורי orihpt
  • 1,315
  • 1
  • 6
  • 26
45
votes
3 answers

Disable Past Date in UIDatePicker in IPhone Objective C

I am new to Objective C and IPhone development. I am using a UIDatePicker in my IPhone Application and my requirement is to allow the user to choose the future date only from the DatePicker. To do this i want to disable past date & time in…
user658442
  • 459
  • 1
  • 4
  • 3
42
votes
8 answers

UIDatePicker, setting maximum and minimum dates based on todays date

If I have a UIDatePicker, and I wish to set the minimum and maximum date range to be between thirty years ago and thirty years in the future, how would I set that up?
cannyboy
  • 23,724
  • 40
  • 138
  • 242
41
votes
16 answers

Change UIDatePicker font color?

All I want to do is change the font color of the UIDatePicker. I've researched other questions but they're all involving changing other properties and customizing the entire look. All I want to do is just change the font color from black to white. I…
Milo
  • 4,791
  • 6
  • 29
  • 58
41
votes
4 answers

Observing change in UIDatePicker

I noticed that there is no delegate to observe changes in UIDatePicker. Is there a way to detect when a change is made in the picker without confirming anything, like the moment it spins and lands on a new number I want to be able to detect that. I…
Chris
  • 6,863
  • 17
  • 64
  • 108
37
votes
7 answers

Fitting a UIDatePicker into a UIActionSheet

I'm trying to get a UIDatePicker with a UIButton to show up in a UIActionSheet. Unfortunately it gets cropped off and the entire Date Picker is not visible. I have not even attempted to add the UIButton yet. Can anyone suggest on getting the entire…
Coocoo4Cocoa
  • 41,896
  • 50
  • 148
  • 175
36
votes
5 answers

Customize text color of UIDatePicker for iOS7 (just like Mailbox does)

I'm having the most frustrating dilemma. I've researched up and down and can clearly see that Apple does not want us tampering with iOS 7. Well, I want to tamper. And, the team at Mailbox clearly figured out how to do it and get approved. The main…
rnystrom
  • 1,866
  • 2
  • 20
  • 45
35
votes
13 answers

How to control positioning of jQueryUI datepicker

The datepicker in jQueryUI renders with a dynamic position. It renders according to its css if there's enough room for it, but if there isn't enough window space it tries to render on screen. I need it to stay put and render in the same place every…
Purrell
  • 11,281
  • 16
  • 51
  • 69
34
votes
5 answers

iPhone datepicker instead of keyboard?

How would you do that? I have a form with a UITextField. When I click in it I would like to display a UIDatePicker instead of the default Keyboard that pops-up by default? Note that there are also other elements on my form.
xpepermint
  • 31,091
  • 29
  • 106
  • 160
33
votes
4 answers

UIDatePicker upon date changed

I have just started using UIDatePicker in my iPad app, but is there a way of checking when the date has been changed? I want to do something when the date is changed. What can I try?
Josh Kahane
  • 15,834
  • 40
  • 127
  • 241
32
votes
11 answers

UIDatePicker select Month and Year

I need a UIDatePicker for selecting Month and Year only. I checked the class reference documents. Looks like UIDatePicker is a UIView. I imagined UIPickerView may be a sub view and I can hide the component if I can grab it. But no. That was not…
Dave
  • 3,988
  • 9
  • 40
  • 56
1
2 3
99 100