uidatepicker

Setting corner radius on UIDatePicker with a background color

谁说我不能喝 提交于 2020-01-14 22:54:57
问题 I have a UIDatePicker in my view and have set the background color of the UIDatePicker : self.datePicker.backgroundColor = [UIColor lightTextColor]; self.datePicker.layer.cornerRadius = 10; This successfully puts a background behind the UIDatePicker ( which in iOS7 is essentially transparent ) but fails to make the rounded corners for the background that I am looking for ( I do this same thing for an image on the screen and it works perfectly ). It seems that the corner radius doesn't affect

Setting corner radius on UIDatePicker with a background color

只愿长相守 提交于 2020-01-14 22:54:31
问题 I have a UIDatePicker in my view and have set the background color of the UIDatePicker : self.datePicker.backgroundColor = [UIColor lightTextColor]; self.datePicker.layer.cornerRadius = 10; This successfully puts a background behind the UIDatePicker ( which in iOS7 is essentially transparent ) but fails to make the rounded corners for the background that I am looking for ( I do this same thing for an image on the screen and it works perfectly ). It seems that the corner radius doesn't affect

Setting corner radius on UIDatePicker with a background color

不羁的心 提交于 2020-01-14 22:54:03
问题 I have a UIDatePicker in my view and have set the background color of the UIDatePicker : self.datePicker.backgroundColor = [UIColor lightTextColor]; self.datePicker.layer.cornerRadius = 10; This successfully puts a background behind the UIDatePicker ( which in iOS7 is essentially transparent ) but fails to make the rounded corners for the background that I am looking for ( I do this same thing for an image on the screen and it works perfectly ). It seems that the corner radius doesn't affect

How to make a UIDatePicker appear at bottom of screen?

元气小坏坏 提交于 2020-01-13 04:12:11
问题 I currently use MonoTouch with MonoTouch.Dialog. When tapping on a date field it pushes the navigationcontroller so you go right a screen to see your UIDatePicker where you choose the date then go "back" to the main screen again. I'd really like to have this UI like other apps I've used that when you select a date field the UIDatePicker appears at the bottom of the current screen. I would like to learn how to do this and apply it to other input fields where I may want to use a custom picker

UIDatePicker issues in popovers on iOS 8

五迷三道 提交于 2020-01-12 04:51:05
问题 Is anyone else having issues with UIDatePickers in popovers on iOS 8? Suddenly our date pickers are not showing up correctly (see screenshot). It appears that part of the picker is not being displayed (though, you can still interact with the missing portion to change the time). I did some testing, and date pickers display perfectly in other views, so it's something related to either popovers or displaying the pickers in a view that is not full screen. Has anyone found a fix or a workaround

How to combine date and time from two UIDatePickers?

假如想象 提交于 2020-01-10 22:22:07
问题 I have two UIDatePickers in my app, one mode is for selecting date and other to time mode. I have fired a notification when the exact date and time is reached. I'm able to fire the reminder at correct time, but the problem is that the date is not checked. Is there any way to check the date and time at the same time?? Thanx in advance... Edit NSDate *date1 = [datePicker date]; NSDate *date2 = [timePicker date]; NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier

Custom iOS UIDatepicker using UIAppearance

人走茶凉 提交于 2020-01-08 19:41:28
问题 UNIQLO's new alarm app has a custom UIDatePicker : And I want to create my own custom UIDatePicker . I tried to change the appearance of the DatePicker, but looking for UI_APPEARANCE_SELECTOR in the UIDatePicker returns nothing . Meaning that its not possible to change any values, as per the docs: To support appearance customization, a class must conform to the UIAppearanceContainer protocol and relevant accessor methods must be marked with UI_APPEARANCE_SELECTOR. How can change my

(Swift) Setting UIDatePicker View from User Input

微笑、不失礼 提交于 2020-01-07 03:01:30
问题 First I display a UIDatePicker on the screen and allow the user to choose a date and time. I save that value like this, which gets a date format that looks like this: 6/1/16, 1:47 PM let time = NSDateFormatter.localizedStringFromDate(datePicker.date, dateStyle: .ShortStyle, timeStyle: .ShortStyle) Later on in the application, I want users to be able to edit their original date, so when a button is pressed, I would like the UIDatePicker to display the time that they had originally chosen. I am

UIDatePicker UIDatePickerModeCountDownTimer iPad Graphic Bug

☆樱花仙子☆ 提交于 2020-01-05 03:33:11
问题 I've just made a new UIView for my UIDatePicker. I was testing it with the default settings and all was ok (UIDatePickerModeDateAndTime) but as soon as I run [[picker picker]]; hell breaks loose.. UIDatePickerModeDateAndTime Mode: UIDatePickerModeCountDownTimer Mode: My debugger console also give 9 errors about not being able to find the mapped image for the following filenames: UITimerPickerFrameRight-180-Bar.png UITimerPickerFrameMiddle-180.png UITimerPickerFrameRight-180-Bar.png

jQuery ui.datepicker on 'select' element

╄→尐↘猪︶ㄣ 提交于 2020-01-02 06:36:06
问题 I have a select element with a couple of dates but I also want to give the possibility of picking a date from the datepicker so I have the following code that displays a calendar icon next to the select field. <select name="birthday" > <option value="${merge0.birthday}">${merge0.birthday}</option> <option value="${merge1.birthday}">${merge1.birthday}</option> </select> <input type="hidden" id="bday_icon" /> Then, this is my datepicker script $("#bday_icon").datepicker( { changeMonth: true,