lib/ProMotion/screens/_screen_module.rb in ProMotion-0.7.3 vs lib/ProMotion/screens/_screen_module.rb in ProMotion-0.7.4
- old
+ new
@@ -124,11 +124,11 @@
self.first_screen == true
end
# [DEPRECATED]
def set_view_controller(vc)
- warn "[DEPRECATION] `set_view_controller` is deprecated and discontinued. Please inherit from the UIViewController you wish to use and include ProMotion::ScreenViewController instead."
+ PM.logger.deprecated "`set_view_controller` is deprecated and discontinued. Please inherit from the UIViewController you wish to use and include ProMotion::ScreenViewController instead."
self
end
def view_did_load; end
@@ -151,10 +151,10 @@
self.on_disappear
end
def on_disappear; end
def view_controller
- warn "[DEPRECATION] `view_controller` is deprecated, as screens are now UIViewController subclasses."
+ PM.logger.deprecated "`view_controller` is deprecated, as screens are now UIViewController subclasses."
self
end
def should_rotate(orientation)
case orientation