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.
これには非常に簡単な解決策があると思います。おそらく誰かが簡単なアドバイスを与えることができます。ビューコントローラに2つの要素があり、回転に応じて位置を変更したい:
縦向き:要素Aが下に、要素Bが上にあります
風景:左側が要素A、右側が要素B。
UIViewController クラスの willAnimateRotationToInterfaceOrientation:duration: メソッドをオーバーライドして、要素 A と B を再配置する必要があります。自動サイズ変更マスクを使用して行うことはできません (そのアプローチを検討している場合)。