2014-09-10 6 views
17

Weiß jemand, ob die offizielle Dokumentation sagt uns die Höhe der Tab-Leiste auf iOS 8 iPad-Anwendungen?iOS 8 iPad Tab Bar Höhe unterscheidet sich als iOS 7

Der Tableistenrahmen meiner App ist (0, 719) (1024, 49) in meiner Landschafts-iPad-App auf iOS 8. Für iOS 7 ist es (0, 712), (1024, 56).

Ich lese in https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/TransitionGuide/Bars.html, dass die Höhe auf iOS 7 ipads 56 Pixel ist. Ich nehme an, es ist nicht das gleiche für iOS 8?

+0

http://stackoverflow.com/questions/25550831/whats-the-height-of-a-uitabbar-on-ios-8 – yazh

Antwort

44

Apple hat die iPad Tab Bar Höhe wieder auf 49pt in iOS 8 geändert. An Apple engineer has confirmed the change. Die Dokumentation scheint jedoch nicht aktualisiert zu sein.

Also für iPad, die UITabBar Höhen pro iOS-Version sind:

  • iOS 6 und früher - 49pt
  • iOS 7 - 56pt
  • iOS 8 und höher - 49pt

Die Tab-Leiste war immer 49pt auf dem iPhone und bleibt so.

+2

sollte es sein ** Pt ** Nicht ** px ** ---> ** 49pt ** – inix

1

Sie können die Größe der Tab-Leiste erhalten programmatisch statt

tabBarController?.tabBar.bounds.size