Sha256: d2427bcea8fdc80d4429854b0d40858dd21bd6b30016cfd2ed56157199a60d76
Contents?: true
Size: 567 Bytes
Versions: 4
Compression:
Stored size: 567 Bytes
Contents
module ProMotion module ScreenElements include ProMotion::ViewHelper def add_element(view, attrs = {}) if attrs.length > 0 set_attributes(view, attrs) end self.view_controller.view.addSubview(view) view end def remove_element(view) view.removeFromSuperview view = nil nil end def bounds return self.view_controller.view.bounds end def frame return self.view_controller.view.frame end def view return self.view_controller.view end end end
Version data entries
4 entries across 4 versions & 1 rubygems