Fixed deprecation warnings on iOS7+ only targets by moving to new APIs. Fixes #13.