Update for iOS7, handle deprecation and warnings on non-retained return values