0
0

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 3 years have passed since last update.

Xcode-storyboardでviewに配置したButtonを操作したい!!

Posted at

はじめに

storyboard上でUIViewの中にUIButtonを置いたりする事って、ままある事だと思います。
ただ、UIViewの中にButtonを設置すると、UIViewの下側に入ってしまい、オートレイアウトなどの操作が出来なくなる事がありますよね😭

なんだかもどかしい気持ちになっていました。

そんな時は

便利な機能がメニューに用意されていたのを発見したので、ここで紹介したいと思います。
スクリーンショット 2022-09-24 10.21.29.png

まずはstoryboardの左にあるメニューから任意のUIButtonやUIViewを選択します。
そして、メニューバーから、Editor→Arrange→画面最前面に出したい時は、Send Front、一つ前に出したい時はSend Forwardを選択します。

すると、画像の選択では、UIButtonがUIViewの前に出てきてくれました😁

ちょっとした事ですが、知っていると便利ですね🥹

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?