Create new NSDate object from the date returned from UIDatePicker
How to create new NSDate object from [myUIDatePicker da开发者_开发问答te] ?
You don't need to create a new NSDate object, you can just use the one it gives you.
NSDate *chosenDate = myDatePicker.date;
If you really need to create a new NSDate object, then you may call [myUIDatePicker date]
.
精彩评论