|
[BUG]
iOS系统对模块UICustomPicker的适配问题
[复制链接]
问大家一个问题:在添加UICustomPicker模块后,在IOS系统上第一次点击进入页面时,模块显示正常。但是第二次重新进入页面时,这个模块就会显示出来。让它hide()也隐藏不掉。这是什么情况?能帮我解答一下吗? 谢谢啦
代码如下:
var UICustomPicker = api.require('UICustomPicker');UICustomPicker.open({ rect: { x: 30, y: api.frameHeight / 2 - 170, w: api.frameWidth - 60, h: 340 }, styles: { bg: 'rgba(0,0,0,0)', normalColor: '#959595', selectedColor: '#3685dd', selectedSize: 36, tagColor: '#3685dd', tagSize: 10 }, data: [{ tag: '时', scope: '0-23' }, { tag: '分', scope: ['a', 'b', 'c', 'd'] }], rows: 3, fixedOn: api.frameName, fixed: true}, function(ret, err) { if (ret) { alert(JSON.stringify(ret)); } else { alert(JSON.stringify(err)); }});
UICustomPicker.hide();
$('#btn').click(function(){
UICustomPicker.show()
});
|
|