Tag: swift and UI

Using Attributed Strings in Swift 3.0

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…

Swift Swift: Using Attributed Strings in Swift

[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…

The Swift Swift Tutorial: How To Use UIViews With Auto Layout Programmatically

[Updated for Swift 2.0 9/16/15 SJL] Auto Layout in interface builder, can be a frustrating experience for those who do not know how to use it. Once you understand how to use Auto Layout, it becomes part of a simple workflow. However, there are…

From Brackets to Braces: We will have UI!!!

One of the things about working with an iPhone is that you can use its cool UI. One of the thing I Have been struggling to write the Swift programming tutorials is that said UI was off-limits by the Apple confidentiality agreement. After writing the print…