Instance Property

scriptCode

The script code for the locale.

Declaration

@property(readonly, copy) NSString *scriptCode;

Discussion

Examples of script codes include "Latn" and "Hant".

Use localizedStringForScriptCode: to obtain a version of the value suitable for display to the user.

This property contains the same value returned by the objectForKey: method when passing the NSLocaleScriptCode key.

See Also

Getting Information About a Locale

localeIdentifier

The identifier for the locale.

countryCode

The country code for the locale.

languageCode

The language code for the locale.

variantCode

The variant code for the locale.

exemplarCharacterSet

The exemplar character set for the locale.

collationIdentifier

The collation identifier for the locale.

collatorIdentifier

The collator identifier for the locale.

usesMetricSystem

A Boolean value that indicates whether the locale uses the metric system.

decimalSeparator

The decimal separator for the locale.

groupingSeparator

The grouping separator for the locale.

currencyCode

The currency code for the locale.

currencySymbol

The currency symbol for the locale.

calendarIdentifier

The calendar identifier for the locale.

quotationBeginDelimiter

The begin quotation symbol for the locale.

quotationEndDelimiter

The end quotation symbol for the locale.

alternateQuotationBeginDelimiter

The alternate begin quotation symbol for the locale.

alternateQuotationEndDelimiter

The alternate end quotation symbol for the locale.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software