Я получаю большую черную полосу вверху и внизу экрана во всем симуляторе - PullRequest
0 голосов
/ 12 июня 2019

enter image description here это код, написанный в CDVViewController.m, основанный на этом только его показе содержимого.In in the image iphone screen scrollview moving under the green color view if i scroll up the view ..how to fix this as per iphone screen Я новичок в Кордове, кто-нибудь может мне помочь?

 -(void)createView
    {CGRect webViewBounds = self.view.bounds;

        webViewBounds.origin = self.view.bounds.origin;

        self.webView = [self newCordovaViewWithFrame:webViewBounds];
        self.webView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);

        [self.view addSubview:self.webView];
        [self.view sendSubviewToBack:self.webView];
    }
    -(UIWebView*)newCordovaViewWithFrame:(CGRect)bounds
    {
        return [[UIWebView alloc] initWithFrame:bounds];
    }

1 Ответ

1 голос
/ 12 июня 2019

Звучит так, будто вы не включили раскадровку запуска (или изображения запуска для всех ожидаемых размеров).Добавьте один из них в свой проект, и все будет в порядке.

...