Code for most of the chapter on the iOS7 Programming Cookbook