Ported to RubyMotion.