1

我正在尝试修复以下问题中描述的白条和覆盖问题: Worklight 6.0.0.1 & iOS 7 - White bar along bottom of screen? 这: IBM Worklight 5.0.6.1 - iOS 7 中的底部空白

我的目标是让覆盖显示在顶部并带有白色背景,然后在下面显示其他所有内容。由于#wl_ios7bar,我能够实现这一点,但问题是一旦我弹出键盘,#wl_ios7bar 就会消失。我在下面截取了一些屏幕截图,并在 #wl_ios7bar 周围添加了一个红色边框(在 css 中)以显示它消失了。

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

在键盘期间

键盘后

4

2 回答 2

1

我选择更改 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];
}
于 2013-11-24T04:49:22.507 回答
0

我在这里找到了答案: http ://www-01.ibm.com/support/docview.wss?uid=swg27039574

将 showIOS7StatusBar 设置为 false 并实现步骤 4 中显示的那些功能,这很好。

于 2014-06-04T20:17:52.273 回答