Tag: UIPickerView

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”

Protocols and Time Pickers

While there is the date components picker, sometimes you want a picker the gives a time interval in seconds. In this two-part tutorial, Let me show you how to set up one, and discuss some good uses of protocols beyondself If you download the… Continue Reading “Protocols and Time Pickers”

This Old App: Why I Hate PickerViews, but Learned To Love Them.

A few months ago, Apple removed my app Interval RunCalc from the App Store for being too old. In this series of articles I’ll document what I did on rebuilding and improving the app. In the last installment, I placed my new model into… Continue Reading “This Old App: Why I Hate PickerViews, but Learned To Love Them.”

Data Entry with UIPickerView

The keyboard can be a curse. Trying to validate data via keyboard can be a nightmare for many projects. One solution to this problem is using a UIPickerView to limit the values the user can enter. In this lesson, we’ll explore the UIPickerView for… Continue Reading “Data Entry with UIPickerView”

Converting Objective C to Swift : The Circular Picker View Example

Swift is a new language. Objective C is not. Sometimes you have some Objective C code and want to make it into Swift code. I had a case of that this week when a reader asked me about continuous picker view wheels. If you… Continue Reading “Converting Objective C to Swift : The Circular Picker View Example”

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”