Common Problems and Questions - ParkinT/RubyMotion_Life GitHub Wiki

Common Gotchas

Pulled from the Google Groups feed, these are some issues that seem to pop up often.

Constants in iOS

Since Ruby requires constants to start with an uppercase letter, a few of the iOS constants must be 'translated' a bit. For example, with kCATransitionMoveIn and kCATransitionFromBottom just make the k uppercase: KCaTransitionMoveIn and KCATransitionFromBottom

Touch event is not responding (firing)

By default UIImageViews disable user interaction. Insert this line:

view.userInteractionEnabled = true 

in viewDidLoad


Be sure to also checkout this page.