Sha256: 0a9f5893d80a062c9a4fe4a36383681a20c3f9ddb76cc9e8a3e95be9a133f1fc
Contents?: true
Size: 695 Bytes
Versions: 28
Compression:
Stored size: 695 Bytes
Contents
class MPTableHeaderWithSectionView < UITableViewHeaderFooterView attr_accessor :section, :selection_style, :content_view def setSection(section) @section = section.try(:weak_ref) self.content_view.setSection(@section) end def setNeedsDisplay content_view.try(:setNeedsDisplay) super end 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 end
Version data entries
28 entries across 28 versions & 1 rubygems