Relative Date Formatting, output for past dates?
问题 I am looking at using -[NSDateFormatter setDoesRelativeDateFormatting:] to present dates as "Today" or "Yesterday". I am only looking at dates in the past but am curious what options I would see localised for the UK. Just "Today" "Yesterday" or anything more convoluted like "The day before yesterday" Are the possible outputs listed anywhere so I can get an idea of the screen space needed to correctly display them? 回答1: Yes. They are listed in your console window when you run the following