Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

spacing in uitextfield

//swift 2.0
textfield.defaultTextAttributes.updateValue(spacing, forKey: NSKernAttributeName)
//swift 3.0
yourField.defaultTextAttributes.updateValue(36.0, 
     forKey: NSAttributedString.Key.kern)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #spacing #uitextfield
ADD COMMENT
Topic
Name
7+9 =