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
class SignupStartView < UIView
attr_reader :sign_up, :sign_in
def initWithFrame(rect)
if super
append!(UIImageView, :logo)
end
self
end
def drawRect(rect)
super
end
end
When appending views inside other views:
and then setting the frame of UIImageView with:
frame isn't properly calculated. Even though the SignupStartView receives a frame of
the frame of the UIImageView is set to:
When setting widht/height manually in the stylesheet, it works as expected?