Class: MPTableHeaderWithSectionView
- Inherits:
-
UITableViewHeaderFooterView
- Object
- UITableViewHeaderFooterView
- MPTableHeaderWithSectionView
- Defined in:
- motion-prime/support/mp_table_header_with_section.rb
Instance Attribute Summary collapse
-
#content_view ⇒ Object
Returns the value of attribute content_view.
-
#section ⇒ Object
Returns the value of attribute section.
-
#selection_style ⇒ Object
Returns the value of attribute selection_style.
Instance Method Summary collapse
Instance Attribute Details
#content_view ⇒ Object
Returns the value of attribute content_view.
2 3 4 |
# File 'motion-prime/support/mp_table_header_with_section.rb', line 2 def content_view @content_view end |
#section ⇒ Object
Returns the value of attribute section.
2 3 4 |
# File 'motion-prime/support/mp_table_header_with_section.rb', line 2 def section @section end |
#selection_style ⇒ Object
Returns the value of attribute selection_style.
2 3 4 |
# File 'motion-prime/support/mp_table_header_with_section.rb', line 2 def selection_style @selection_style end |
Instance Method Details
#initialize_content ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'motion-prime/support/mp_table_header_with_section.rb', line 14 def initialize_content self.content_view = MPTableViewCellContentView.alloc.initWithFrame(self.bounds) self.content_view.setBackgroundColor(:clear.uicolor) self.content_view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight self.content_view.top = 0 self.content_view.left = 0 self.addSubview(content_view) end |
#setNeedsDisplay ⇒ Object
9 10 11 12 |
# File 'motion-prime/support/mp_table_header_with_section.rb', line 9 def setNeedsDisplay content_view.try(:setNeedsDisplay) super end |
#setSection(section) ⇒ Object
4 5 6 7 |
# File 'motion-prime/support/mp_table_header_with_section.rb', line 4 def setSection(section) @section = section.try(:weak_ref) self.content_view.setSection(@section) end |