issue #3069: Update ios/CCDevice.mm.