• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Locale in Watch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Locale in Watch


  • Subject: Locale in Watch
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Thu, 16 Feb 2017 17:34:36 +0700

I use WKInterfaceDate / WKInterfaceTimer in a wach app (3.1.3).

I would like to set the Locale - but see no way to do so.
The only thing I did accomplish is to set the calendar of WKInterfaceDate according to the locale.

In macOS I would use:

NSDateFormatter  *dateFormatter = [ [ NSDateFormatter alloc ] init];
dateFormatter.locale =  [ NSLocale localeWithLocaleIdentifier: someLocaleID ];
…
NSString *dateForDisplay = [ dateFormatter stringFromDate: someDate ];

Is there a way to make the watch app use a different locale?

Gerriet.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: Throwing an error from a NSDocument.init override
  • Next by Date: Can't restore first responder when restoring window state
  • Previous by thread: Re: Some help with NSComparisonPredicate please
  • Next by thread: Can't restore first responder when restoring window state
  • Index(es):
    • Date
    • Thread