Accepting user text tutorial code form the book "iOS 7  Programming Cookbook"