class SectionHeaderView
Public Instance Methods
initWithFrame(frame)
click to toggle source
Calls superclass method
# File lib/project/views/section_header_view.rb, line 5 def initWithFrame(frame) super.tap do |view| view.addSubview(section_title) end end
section_title()
click to toggle source
# File lib/project/views/section_header_view.rb, line 15 def section_title @section_title ||= PaddedLabel.alloc.initWithFrame(bounds).tap do |label| label.adjustsFontSizeToFitWidth = true label.backgroundColor = MotionForm.section_header_color label.font = MotionForm.section_header_font label.padding = 10 label.textColor = MotionForm.section_header_text_color end end
text=(text)
click to toggle source
# File lib/project/views/section_header_view.rb, line 11 def text=(text) section_title.text = text end