Fix a few of the iOS 7 deprecations

A couple of changes to fix a few of the iOS 7 deprecation warnings.