把螢幕上方的status bar 弄掉

| No Comments | No TrackBacks
首先是官方SDK的實現, 很簡單:
只需在Info.plist文件離添加如下一句話就ok
UIStatusBarHidden
fullscreen.png

以下是非官方的實現:
只要在 applicationDidFinishLaunching 的開始部份,
加上下面的 setStatusBarMode 代碼即可:
Quote:

- (void) applicationDidFinishLaunching: (id) unused
{
    [UIHardware _setStatusBarHeight:0.0f];
    [self setStatusBarMode:2 orientation:0 duration:0.0f fenceID:0];

No TrackBacks

TrackBack URL: http://iphone.ipsw.info/mt/mt-tb.cgi/208

Leave a comment

About this Entry

This page contains a single entry by lvyile published on September 16, 2008 1:47 AM.

推荐一个Xcode的Tip(CocoaChina cryfish) was the previous entry in this blog.

第一計 瞞天過海(三十六計之勝戰計) is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.