class RubyMotionQuery::App
Public Class Methods
current_screen(root_view_controller = nil)
click to toggle source
# File lib/project/ruby_motion_query/app.rb, line 5 def current_screen(root_view_controller = nil) current_view_controller root_view_controller end
data(*args)
click to toggle source
# File lib/project/ruby_motion_query/app.rb, line 9 def data(*args) # Do not alias this CDQ.cdq(*args) end
reset_image_cache!()
click to toggle source
# File lib/project/ruby_motion_query/app.rb, line 13 def reset_image_cache! if !!defined?(SDWebImageManager) image_cache = SDImageCache.sharedImageCache image_cache.clearMemory if image_cache.respond_to?(:clearDisk) # Support for SDWebImage v3.x image_cache.clearDisk else # Support for SDWebImage v4.x image_cache.deleteOldFiles end else puts "\n[RedPotion ERROR] tried to reset image cache without SDWebImage cocoapod. Please add this to your Rakefile: \n\napp.pods do\n pod \"SDWebImage\"\nend\n" end end