Foundation · IOS API REFERENCE
PersonNameComponentsFormatter
class · iOS 9.0+ · SDK 27.1
class PersonNameComponentsFormatter
Members (12)
static · iOS 9.0+localizedString
TypeScriptstatic localizedString(components: PersonNameComponents, nameFormatStyle: PersonNameComponentsFormatter_Style, nameOptions?: PersonNameComponentsFormatter_Options): string
Swift declarationclass func localizedString(from components: PersonNameComponents, style nameFormatStyle: PersonNameComponentsFormatter.Style, options nameOptions: PersonNameComponentsFormatter.Options = []) -> String
method · iOS 9.0+annotatedString
TypeScriptannotatedString(components: PersonNameComponents): NSAttributedString
Swift declarationfunc annotatedString(from components: PersonNameComponents) -> NSAttributedString
method · iOS 9.0+getObjectValue
TypeScriptgetObjectValue(string: string): { $ret: boolean; $out: { "obj": (unknown) | null; "error": (NSString) | null } }
Swift declarationfunc getObjectValue(_ obj: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for string: String, errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool
Omit the output parameters from the call. The result contains $ret and $out, with obj, error inside $out.
initinit
TypeScriptstatic init(): PersonNameComponentsFormatter
Swift declarationinit()
method · iOS 10.0+personNameComponents
TypeScriptpersonNameComponents(string: string): (PersonNameComponents) | null
Swift declarationfunc personNameComponents(from string: String) -> PersonNameComponents?
method · iOS 9.0+string
TypeScriptstring(components: PersonNameComponents): string
Swift declarationfunc string(from components: PersonNameComponents) -> String
get · iOS 15.0+locale
TypeScriptget locale(): (Locale) | null
Swift declarationvar locale: Locale! { get set }
set · iOS 15.0+locale
TypeScriptset locale(value: (Locale) | null)
Swift declarationvar locale: Locale! { get set }
get · iOS 9.0+isPhonetic
TypeScriptget isPhonetic(): boolean
Swift declarationvar isPhonetic: Bool { get set }
set · iOS 9.0+isPhonetic
TypeScriptset isPhonetic(value: boolean)
Swift declarationvar isPhonetic: Bool { get set }
get · iOS 9.0+style
TypeScriptget style(): PersonNameComponentsFormatter_Style
Swift declarationvar style: PersonNameComponentsFormatter.Style { get set }
set · iOS 9.0+style
TypeScriptset style(value: PersonNameComponentsFormatter_Style)
Swift declarationvar style: PersonNameComponentsFormatter.Style { get set }
Skipped declarations
No declarations were skipped in this snapshot.
All Foundation types →