开发者

Create new NSDate object from the date returned from UIDatePicker

开发者 https://www.devze.com 2023-01-08 13:03 出处:网络
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.

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].

0

精彩评论

暂无评论...
验证码 换一张
取 消