LoginSignup
1
1

More than 5 years have passed since last update.

シミュレータ上で表示している任意のビューをRubyMotion REPLでのselfにする

Posted at

RubyMotionのREPL(rake後に表示されるコンソール)を起動した状態で、シミュレータに表示されているビューをCommandキーを押しながら選択すると、REPLでのselfがそのビューになります。

(main)> self
#=> main
(main)> self.class
#=> TopLevel

# シミュレータ上でCommandキーを押しながらselfにしたいビューをクリック

(<UIView:0x8e362f0>)> self
#=> <UIView:0x8e362f0>
(<UIView:0x8e362f0>)> self.class
#=> UIView

こういうのはどこでまとめてあるのだろうか。。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1