Working with switch view tutorial code form the book "iOS 7 Programming Cookbook"