Code examples for the new functions of iOS 8.