Tag: UIPIckerViewDelegate

Time Picker Part 2: Strings to Time Intervals

In the last tip,  I showed you how to use UIPickerControllers to make a time interval input. What I didn’t show you is how to output that. In this tip I’ll show you how to read and convert data from a picker that has… Continue Reading “Time Picker Part 2: Strings to Time Intervals”

Swift Swift: Formatting a UIPickerView

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

Swift Swift: Implementing Picker Views

[Updated to Swift3.0 10/4/16 SJL] This week, we’ll look at UIPickerView. Picker views are the spin-wheel like controls that often remind me of slot machines. Picker views, like table and collection views, are delegate based. You need to adopt a delegate and data source to… Continue Reading “Swift Swift: Implementing Picker Views”