Class: UserInfoHeader
- Includes:
- SimpleView::Layout
- Defined in:
- app/user_info_controller.rb
Instance Attribute Summary
Attributes inherited from UIView
Instance Method Summary collapse
Methods included from SimpleView::Layout
#add_view, #create_view, included, #setup, #view_stack
Methods inherited from UIView
#closest, #find, #height, #left, #setHeight, #setLeft, #setTop, #setWidth, #sibling, #top, #width
Instance Method Details
#initWithFrame(frame) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'app/user_info_controller.rb', line 52 def initWithFrame frame if super setup self do image_view name: 'avatar', image: 'test.jpg', width: 50, height: 50, top: 20, left: 10 label name: 'full_name', text: 'Nyan Cat', font: '16 bold', backgroundColor: 'clear', height: 20, top: 20, left: 70, right: 10 label text: 'Internet Meme', font: '14', textColor: '#666', backgroundColor: 'clear', height: 18, top: 45, left: 70, right: 10 end end self end |