module MotionHybrid::Releasable
Public Instance Methods
on_disappear()
click to toggle source
# File lib/motion-hybrid/concerns/releasable.rb, line 8 def on_disappear release_from_memory if @should_release end
will_disappear()
click to toggle source
# File lib/motion-hybrid/concerns/releasable.rb, line 4 def will_disappear @should_release = nav_bar? && !navigationController.viewControllers.include?(self) end
Private Instance Methods
release_from_memory()
click to toggle source
# File lib/motion-hybrid/concerns/releasable.rb, line 14 def release_from_memory PM.logger.debug "Releasing #{self}" webview.removeFromSuperview webview.release end