在你需要跳转界面的时候设置以下代码:
softInputMode:'pan'
例子:
api.openFrameGroup ({
name: 'footer_tab_demo',
scrollEnabled:false,
customRefreshHeader: 'UIPullRefresh',
rect:{
x:0,
y:header_h,
w:'auto',
h:body_h-footer_h-header_h
},
index:0,
preload:3,
frames:
[{
name: 'machine',
url: './html/machine.html',
bounces:true,
softInputMode:'pan'//设置ios错位问题
}]
}, function(ret, err){
})
}