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.
電話を水平にしたときの iPhone navBar のピクセルの高さを教えてもらえますか?
これが基本的な質問であることはわかっていますが、答えが見つかりません。
ありがとうございました。
UIのサイズ設定を処理するときは、ハードコードされた値に依存しないでください。特に今、[大型iPodタイプのデバイス]が登場しています。
バーの高さは、フレームを照会することで取得できます。
次のようなもの:
navigationController.navigationBar.frame.size.height;
バーの高さを返します。