test example in AppDelegate
Fix iOS 8 deprecations (closes #5)