See This. http://www.raywenderlich.com/73984/make-app-like-runkeeper-part-1