Exampled updated for iOS 6