6 Text Input and Delegation
WorldTrotter looks good, and its map is useful, but so far the temperature conversion view only converts a single, hardcoded value. In this chapter, you are going to add an instance of UITextField to ConversionViewController. The text field will allow the user to type in a temperature in degrees Fahrenheit that will then be converted to degrees Celsius and displayed on the interface (Figure 6.1).
Figure 6.1 WorldTrotter with a UITextField
Get iOS Programming: The Big Nerd Ranch Guide, 7th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.