lib/ProMotion/cocoatouch/view_controller.rb in ProMotion-2.6.1 vs lib/ProMotion/cocoatouch/view_controller.rb in ProMotion-2.7.0
- old
+ new
@@ -4,9 +4,15 @@
s = self.alloc.initWithNibName(args[:nib_name] || nil, bundle:args[:bundle] || nil)
s.screen_init(args) if s.respond_to?(:screen_init)
s
end
+ def init
+ super.tap do
+ screen_init if respond_to?(:screen_init)
+ end
+ end
+
def loadView
self.respond_to?(:load_view) ? self.load_view : super
end
def viewDidLoad