Category Archives for UIStackView

UIButton Subclass And Initialization For Storyboard or Code

Let’s look at how to design a subclass of UIButton with Swift, with initializers such that it can be used in a storyboard, or programmatically in code. We’ll discuss initialization requirements,

Continue reading

Easy And Flexible Forms In iOS With Interface Builder

This post looks at how to easily design future-proof data entry forms in iOS with Interface Builder. It includes a demo app written in Swift. There are some libraries written to help with creating forms,

Continue reading

UISlider With Fixed Increments For Filtering in Swift

This post illustrates a solution for using a UISlider with fixed increments to provide a filtering mechanism in Swift, and comes complete with a sample app. If you want to jump to the app, the link is

Continue reading

UIStackView For Showing And Hiding User Interface Controls

Let’s take a look at a very useful feature of UIStackView: showing and hiding user interface controls. In an earlier tutorial, I demonstrated how to implement a custom edit button in each row for

Continue reading

UITableViewCell Subclass In Swift For Dynamic Cell Reuse

This tutorial demonstrates implementation in Swift of Dynamic Prototype cells for a UITableView using a custom UITableViewCell subclass. Update 3 Aug 2017: Demo app is updated for Swift 3. Before we get

Continue reading

setNeedsDisplay And drawRect Explained

In my previous post, I explained the difference between setNeedsLayout and layoutIfNeeded. This post covers another related and important method of UIView, which is setNeedsDisplay. 29 March 2017: Please

Continue reading