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
text
The text to localize
tableName
the .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
text
The text to localize
arguments
The arguments to replace
Return Value
the localized text
String?
with format