Eliminating warnings due to methods deprecated in iOS 7.