进行hybird编程,采用方案为phonegap+jqmobile,在IOS7的设备中发现APP界面的顶部与IOS状态栏互相重叠在一起,查看底层源码后发现原因,解决方法如下:
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.
if ([[[UIDevicecurrentDevice]systemVersion