Method: SugarCube::Repl.get_tree_selector
- Defined in:
-
lib/ios/sugarcube-repl/repl.rb,
lib/osx/sugarcube-repl/repl.rb
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/ios/sugarcube-repl/repl.rb', line 86 def get_tree_selector(item) if item.is_a? UIView return :subviews elsif item.is_a? UIViewController return -> (ctlr) do ret = Array.new ctlr.childViewControllers if ctlr.presentedViewController && ctlr.presentedViewController.presentingViewController == ctlr ret << ctlr.presentedViewController end ret end else nil end end |