2013-10-12 100 views
1

白條我面臨的一個問題,因爲我傳遞給IOS 7:ios7閃屏底部

閃屏設備屏幕底部的白條。 我認爲這可能與iOS 7上的狀態欄更改有關,該狀態欄始終在應用程序中可見,我無法將其隱藏。

在論壇上,他們建議在config.xml中設置許多參數來隱藏狀態欄,但它不起作用。

PS:我使用的PhoneGap構建

感謝

+1

你使用什麼版本的phonegap? – benka

回答

0

轉到XXXX-的info.plist,並確保 '狀態欄最初是隱藏的' 參數設置爲YES

+0

這不適合我,任何其他提示? –

0

這可能是您的默認圖片尺寸。使用iOS 7時,默認圖像大小應該包含狀態欄高度(在沒有之前)。例如,對於iPhone 5,肖像版本應該是640×1136

參考:App Launch (Default) Images

2

直到PhoneGap的3.0:

CDVSplashScreen.m文件尋找這一行

imgBounds.origin.y -= statusFrame.size.height; 

它改成這樣:

if (SYSTEM_VERSION_LESS_THAN(@"7.0")) { 
    imgBounds.origin.y -= statusFrame.size.height; 
} 

也將這些行添加到同一個文件的頂部:

#define SYSTEM_VERSION_EQUAL_TO(v)([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame) 
#define SYSTEM_VERSION_GREATER_THAN(v)([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending) 
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) 
#define SYSTEM_VERSION_LESS_THAN(v)([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending) 
#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v)([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending) 

這將刪除從底部的白色欄。

From PhoneGap 3.1:
這是固定的。