Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ボタンの位置を下に移動するにはどうすればよいですか?オンのときにUISwitchがあり、それによっていくつかのものが表示されますが、それは私のボタンの1つをカバーします。ボタンが重ならないようにボタンを下にシフトするにはどうすればよいですか?
ボタンのフレームを新しい場所に設定します。たとえば、これによりボタンが100ピクセル下に移動します。
myButton.frame = CGRectOffset(myButton.frame, 100.0, 0);