I have two UIDatePicker controls in my app, one configured with UIDatePickerModeDate and one with UIDatePickerModeTime.
I want to configure a NSDate object with the date from UIDatePicker one and the time from the second one … how?
Thanks,
Mark
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.
Assume date1 and date2 are your two NSDate values. date1 contains your date components and date2 contains your time components. Here’s how you would combine them together:
For iOS 8.0 +