第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

帶Phonegap的iOS 7狀態(tài)欄

帶Phonegap的iOS 7狀態(tài)欄

iOS
MYYA 2019-12-09 15:59:44
在iOS 7中,Phonegap應用程序將出現(xiàn)在狀態(tài)欄下方。這可能導致難以單擊位于屏幕頂部的按鈕/菜單。是否有人知道在Phonegap應用程序中解決iOS 7上此狀態(tài)欄問題的方法?我試圖用CSS抵消整個網頁,但似乎無法正常工作。有沒有辦法喜歡偏移整個UIWebView或只是使狀態(tài)欄的行為像在iOS6中一樣?
查看完整描述

3 回答

?
開滿天機

TA貢獻1786條經驗 獲得超13個贊

我在另一個線程上找到了答案,但是如果有人懷疑,我會回答這個問題。


只需將viewWillAppearin 替換為MainViewController.m:


- (void)viewWillAppear:(BOOL)animated {

    // View defaults to full size.  If you want to customize the view's size, or its subviews (e.g. webView),

    // you can do so here.

    // Lower screen 20px on ios 7

    if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {

        CGRect viewBounds = [self.webView bounds];

        viewBounds.origin.y = 20;

        viewBounds.size.height = viewBounds.size.height - 20;

        self.webView.frame = viewBounds;

    }

    [super viewWillAppear:animated];

}


查看完整回答
反對 回復 2019-12-09
?
狐的傳說

TA貢獻1804條經驗 獲得超3個贊

除了路德維?!た死锼雇懈ド↙udwig Kristoffersson)的尺寸調整功能外,我建議更改狀態(tài)欄顏色:


- (void)viewDidLoad

{

    [super viewDidLoad];

    // Do any additional setup after loading the view from its nib.


    if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {

        CGRect viewBounds = [self.webView bounds];

        viewBounds.origin.y = 20;

        viewBounds.size.height = viewBounds.size.height - 20;

        self.webView.frame = viewBounds;

    }

    self.view.backgroundColor = [UIColor blackColor];

}

-(UIStatusBarStyle)preferredStatusBarStyle{

    return UIStatusBarStyleLightContent;

}


查看完整回答
反對 回復 2019-12-09
  • 3 回答
  • 0 關注
  • 577 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號