SORU
19 EYLÜL 2013, PERŞEMBE


üst üste UI durum çubuğu iOS 7

Geçenlerde yükseltilmiş için böyle büyük mükafat 5 ve ben çalıştırmak benim app iOS simülatörü açılış ekranı ile çakışıyor durum çubuğu ve bir uygulama durum çubuğu ile çakışıyor üzerine elemanlar benim app gibi bir geri düğmesi var üzerinde sol üst köşede benim app. Benim app ™ 2.9 kullanarak yapıyorum. Bu doğru olarak işlemek nasıl alabilirim herhangi bir fikir.

splashscreen

UI

CEVAP
4 EKİM 2013, Cuma


MainViewController.miçinde: - (void)viewWillAppear:(BOOL)animated Bu ekleyin:

//Lower screen 20px on ios 7
    if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
        CGRect viewBounds = [self.webView bounds];
        viewBounds.origin.y = 18;
        viewBounds.size.height = viewBounds.size.height - 18;
        self.webView.frame = viewBounds;
    }

son işlevi böyle görünecek:


- (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 = 18;
        viewBounds.size.height = viewBounds.size.height - 18;
        self.webView.frame = viewBounds;
    }
    [super viewWillAppear:animated];
}

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • DominicFear

    DominicFear

    30 Kasım 2006
  • NYLON Video

    NYLON Video

    11 Aralık 2006
  • READ DESCRIPTION NOW!!!!!!!

    READ DESCRIP

    18 ŞUBAT 2009