Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set a date for WKInterfaceDate

Can WKInterfaceDate show a date & time different from the current values?

If yes, how can I set a different date?

like image 678
Fab Avatar asked Nov 13 '15 15:11

Fab


1 Answers

apple documentation says:

A WKInterfaceDate object is a custom label that displays the current date or time. Use this object when you want to display date or time information without further interaction from your WatchKit extension. At runtime, use the date object to configure the appearance of the date and time information being displayed.

For different date you can simply create label and set it's text to a String that you create with NSDateFormatter out of some NSDate.

like image 166
Eluss Avatar answered Oct 19 '22 23:10

Eluss