UILabel
class UILabel : UIView, NSCoding, UIContentSizeCategoryAdjusting
-
Localizing label and sets the accessibilityIdentifier
Declaration
Swift
@objc open var localizedText: String? { get set } -
Declaration
Swift
open override func awakeFromNib() -
Sets the localized title from a table.string file.
Declaration
Swift
@discardableResult @objc open func localizeText(_ text: String, fromTableName tableName: String?) -> String?Parameters
textThe text to localize
tableNamethe .string table name if any
Return Value
the localized title
String? -
Sets the localized text with format.
Declaration
Swift
@discardableResult open func localizeText(formatKey: String, _ arguments: CVarArg...) -> String?Parameters
textThe text to localize
argumentsThe arguments to replace
Return Value
the localized text
String?with format
View on GitHub
UILabel Extension Reference