Adding gravity to UI components tutorial code form the book "iOS 7 Programming Cookbook"