infinitered / redpotion

We believe iPhone development should be clean, scalable, and fast with a language that developers not only enjoy, but actively choose. With the advent of Ruby for iPhone development the RubyMotion community has combined and tested the most active and powerful gems into a single package called RedPotion
MIT License
233 stars 40 forks source link

Sorry, image= is not implemented on RubyMotionQuery::Stylers::UIViewStyler #157

Closed dhf0820 closed 8 years ago

dhf0820 commented 8 years ago

I am trying to add an image to a layout using st.image = image.resource('icon_msg') in the stylesheet. I tried it even with a default image that is part of the template.

I get: Sorry, image= is not implemented on RubyMotionQuery::Stylers::UIViewStyler. This will produce a crash when not in debug mode.

This is on RP = 1.5.0, ruby_motion_query (>= 1.7.0) from Gemfile.lock

squidpunch commented 8 years ago

Yeah it's a valid warning.

You'll want to use an UIImageView or use background_image that styler isn't on UIView

dhf0820 commented 8 years ago

Thank you. That will cure me from using examples to learn from. The example was wrong.

squidpunch commented 8 years ago

No worries! Is this an example in the redpotion docs? I can update of so!

dhf0820 commented 8 years ago

I will attempt to find it again. It was an example of an RMQ. What is really needed is how to handle keyboard showing (with moving the frame up/down) and hiding plus the textFieldShouldReturn the RMQ/PM way.