Update some iOS objective-c methods
Update some iOS objective-c methods because in Xcode 10 they are deprecated and the have unsupported since iOS SDK 12.
Update some iOS objective-c methods because in Xcode 10 they are deprecated and the have unsupported since iOS SDK 12.