1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

1
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?