详细问题描述
[版本]
IOS hbuilder 8.0.2.201703061842
IOS系统版本 10.2
[内容]
drawpic,drawtext,drawrect我绘制时设置了id,然后用同一id重新绘制,只能改变文字,而样式,大小,位置,颜色全部无法重新绘制。
ios下必显,安卓无此问题。
如下代码,只会在第一次绘制的地方出现aaaa,bbbb,cccc,但是大小,位置,颜色等其他信息全都不会改变,安卓正常。
nav = new plus.nativeObj.View("nav", { top: "0px", left: "0px", width: "100%", height: "50px" });
nav.drawRect("rgba(255,255,255,0.92)");
setTimeout(function(){
nav.drawText("aaaa", {top: "0px",left: "0px",width: "30px"}, { color: "#ff0000", size:"12px" }, "test");
},1000);
setTimeout(function(){
nav.drawText("bbbb", {top: "10px",left: "50px",width: "30px"}, { color: "#00ff00", size:"15px" }, "test");
},2000);
setTimeout(function(){
nav.drawText("cccc", {top: "30px",left: "100px",width: "30px"}, { color: "#0000ff", size:"9px" }, "test");
},3000);
r***@163.com (作者)
非常感谢。
2017-03-21 13:13