Fix method declaration issue in custom text input support for iOS.