Removed deprecation warning.

Fixes a deprecation warning issued by the newest RubyMotion version.