Get rid of the deprectaed methods on iOS 7