Posted on July 5, 2016
by Steven Lipton
19 Comments
For most uses, a basic string works well. Normal strings have no character or paragraph formatting. They rely on the properties of the control to format them. The system only formats the full string, not parts of it. For formatting a part of a… Continue Reading “Using Attributed Strings in Swift 3.0”
Category: Swift Programming, Swift Swift, TutorialTags: Apple swift, Attributed Strings, Attributed Text, attributes, Drop Shadows, NSAttributedString, NSBackgroundColorAttributeName, NSFontAttributeName, NSMutableAttributedString, NSRange, NSShadow, NSShadowAttributeName, NSStrokeColorAttributeName, NSStrokeWidthAttributeName, swift and UI, swift programming, Swift. NSAttributedString in Swift
Posted on October 21, 2014
by Steven Lipton
63 Comments
[Updated to Swift 2.0/iOS9.0 9/15/15] I’ve posted on UIPickerViews before, but in the comments for that post, I got a question that needed an answer so big, it was worth a new post. UIPickerViews are those spinning wheel slot machine type controls. For a… Continue Reading “Swift Swift: Formatting a UIPickerView”
Category: Swift Swift, TutorialTags: Attributed String UIPIckerView, colors in UIPickerView, fonts in UIPickerView, Formatting text in UIPickerView, NSAttributedString, UIPickerView, UIPickerView in Swift, UIPIckerView Swift, UIPIckerViewDataSource, UIPIckerViewDelegate, UIView in UIPIckerView
Posted on October 20, 2014
by Steven Lipton
13 Comments
[Updated to Swift 2.0/iOS9 9/30/15 SJL] Sometimes you want to be fancy with your strings. For most uses, a basic string works well. Normal strings have no character or paragraph formatting. They rely on the properties of the control to format them. The system… Continue Reading “Swift Swift: Using Attributed Strings in Swift”
Category: Swift Programming, Swift Swift, TutorialTags: Apple swift, Attributed Strings, Attributed Text, attributes, NSAttributedString, NSBackgroundColorAttributeName, NSFontAttributeName, NSMutableAttributedString, NSRange, NSStrokeColorAttributeName, NSStrokeWidthAttributeName, swift and UI, swift programming, Swift. NSAttributedString in Swift