键盘显示后,Worklight iOS7#wl_ios7bar消失

键盘显示后,Worklight iOS7#wl_ios7bar消失,ios7,ibm-mobilefirst,Ios7,Ibm Mobilefirst,我正在尝试修复以下问题中描述的白条和覆盖问题: 这是: 我的目标是让覆盖显示在白色背景的顶部,然后在下面显示所有其他内容。多亏了#wl#u ios7bar,我才能够实现这一点,但问题是一旦我弹出键盘,#wl#u ios7bar就消失了。我在下面截图,在#wl#u ios7bar周围添加了一个红色边框(css),显示它消失了 我使用的是Worklight Eclipse插件的Worklight版本6.0.0.20130926-1933,这个问题只发生在iOS7中。有什么建议吗? 我选择更改此

我正在尝试修复以下问题中描述的白条和覆盖问题: 这是:

我的目标是让覆盖显示在白色背景的顶部,然后在下面显示所有其他内容。多亏了#wl#u ios7bar,我才能够实现这一点,但问题是一旦我弹出键盘,#wl#u ios7bar就消失了。我在下面截图,在#wl#u ios7bar周围添加了一个红色边框(css),显示它消失了

我使用的是Worklight Eclipse插件的Worklight版本6.0.0.20130926-1933,这个问题只发生在iOS7中。有什么建议吗?


我选择更改此解决方案的Cordova类。到目前为止效果很好。在CDVViewController.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];
}

我选择更改Cordova类来解决这个问题。到目前为止效果很好。在CDVViewController.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];
}
我在这里找到了答案:

将showIOS7StatusBar设置为false并实现步骤4中所示的功能,一切正常。

我在这里找到了答案:


将showIOS7StatusBar设置为false并实现步骤4中所示的功能即可。

感谢您的回复!不幸的是,这个解决方案也不太管用。一旦我打开键盘,我的应用程序顶部就会被覆盖层和它后面的白色矩形所覆盖。感谢您的回复!不幸的是,这个解决方案也不太管用。一旦我打开键盘,我的应用程序顶部就会被覆盖层和它后面的白色矩形覆盖。