Cleaning up iOS. Mostly replacing deprecated methods with the modern one.