Transfer reloading responsibility to VCs

This commit is contained in:
Kyle Fang
2015-04-19 01:53:38 +08:00
parent 7e0c5c25a5
commit 5cc4ec08a6

View File

@@ -84,8 +84,9 @@ if RUBYMOTION_ENV == "development"
end
end
rmq.view_controller.view.subviews.each {|s| s.removeFromSuperview}
rmq.view_controller.send(:on_load)
cvc = rmq.view_controller
cvc.send(:on_code_reload) if cvc.respond_to?(:on_code_reload)
"Reloaded"
end