2013-10-10 52 views
1

我需要調整一個應用程序到iOS 7,並且我在iPad上運行時遇到了麻煩,因爲屏幕的大小在底部和頂部都有一點切斷,如圖片。適應iOS 7在iPad上

enter image description here

我試圖遵循一些準則(如this),但沒有運氣。

它適用於iOS 6和7上的iOS 6和iPad 2上的普通iPad 1,但尺寸縮小(不是沒有任何截圖)。

有人能給我一些提示嗎? 非常感謝。

+0

這與iPad mini有什麼關係?您的屏幕截圖適用於iPad模擬器。 – rmaddy

+0

@rmaddy它在模擬器中完全相同於物理iPad mini – noloman

+0

@noloman它可以在普通iPad(2)和視網膜iPad上工作嗎? – rckoenes

回答

0

我解決了這個問題,在我的Info.plist中創建了一個boolean,標題爲View controller-based status bar appearance,值爲NO

謝謝大家的幫助!

0

正如@noloman說:設置你的.plist以下

View controller-based status bar appearance(布爾)爲NO

我建議,這也: Status bar is initially hidden(布爾)爲YES

,並調用以下內容在必要時:

[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone]; 

(例如:當MPMoviePlayerViewController*從播放視頻返回(如狀態欄所示))

相關問題