Gold Challenge: Concise Coordinates

The silver challenge revealed that you would have to separate the latitude and longitude into separate key-value pairs in NSUserDefaults. Make it so both the latitude and longitude are stored as one value under one key. (Hint: You will need to use NSKeyedArchiver and NSKeyedUnarchiver, and not NSUserDefaultssetObject:forKey:.)

Get iOS Programming: The Big Nerd Ranch Guide 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.