update the focus example for iOS 8