Fix iOS7 deprecation warnings