Category Archives for UIStackView

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. Before we get started, a refresher on what we mean by a dynamic

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