Class: UIViewController
- Inherits:
-
Object
- Object
- UIViewController
- Defined in:
- lib/motion-pixate-layout/z_core_extensions/ui_view_controller.rb
Defined Under Namespace
Classes: SubviewHash
Class Method Summary collapse
- .after_pixate_layout(&block) ⇒ Object
- .before_pixate_layout(&block) ⇒ Object
- .pixate_layout(selector = '', attributes = {}, &block) ⇒ Object
Instance Method Summary collapse
Class Method Details
.after_pixate_layout(&block) ⇒ Object
13 14 15 |
# File 'lib/motion-pixate-layout/z_core_extensions/ui_view_controller.rb', line 13 def after_pixate_layout(&block) pixate_layout.after << block end |
.before_pixate_layout(&block) ⇒ Object
17 18 19 |
# File 'lib/motion-pixate-layout/z_core_extensions/ui_view_controller.rb', line 17 def before_pixate_layout(&block) pixate_layout.before << block end |
.pixate_layout(selector = '', attributes = {}, &block) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/motion-pixate-layout/z_core_extensions/ui_view_controller.rb', line 3 def pixate_layout(selector='', attributes={}, &block) if block_given? pixate_layout.selector = MotionPixateLayout::Selector.new(selector) pixate_layout.view_attributes = attributes pixate_layout.blocks << block else @_pixate_layout ||= MotionPixateLayout::Layout.new end end |
Instance Method Details
#pixate_layout ⇒ Object
22 23 24 |
# File 'lib/motion-pixate-layout/z_core_extensions/ui_view_controller.rb', line 22 def pixate_layout self.class.pixate_layout end |
#subviews ⇒ Object
30 31 32 |
# File 'lib/motion-pixate-layout/z_core_extensions/ui_view_controller.rb', line 30 def subviews @subviews_hash ||= SubviewHash.new(view) end |
#viewDidLoad ⇒ Object
26 27 28 |
# File 'lib/motion-pixate-layout/z_core_extensions/ui_view_controller.rb', line 26 def viewDidLoad MotionPixateLayout::Proxy.new(self).run end |