Added all of the code and changed target to iOS 6.0