iOS 7 Programming Cookbook's code by Devchen.