Updated a deprecated method, fixed a few iOS 7.1 warnings