Comparing an NSDate to [NSDate date]

前端 未结 3 1542
借酒劲吻你
借酒劲吻你 2021-02-08 06:05

I am trying to force a user to select a date in the future with a date picker. I obviously used the compare: method, however, when I do the following code, even if it\'s the sam

3条回答
  •  失恋的感觉
    2021-02-08 07:04

    I don't know the answer to your problem, but how you could circumvent it.

    Just use the minimumDate property of the UIDatePicker, that's even a much cleaner approach.

提交回复
热议问题