发一个没弄懂的问题,求大神辅助一波!
问题:label设置为白色,设置outline为"#E99B27",在浏览器、安卓上都显示正常。但是在ios上描边就变成了黑色。如何解决?
1赞
亲测有效!
在 cocos/platform/apple/CCCanvasRenderingContext2D-apple.mm 文件里
加上 CGContextSetRGBStrokeColor(_context, _strokeStyle.r, _strokeStyle.g, _strokeStyle.b, _strokeStyle.a);?
我也是2.3.3
为什么我这边无效…
你是不是就直接添加到了CGContextSetRGBFillColor的上面。。。。。
一开始我也是这么搞得,直到我发现有两行有CGContextSetRGBFillColor,啊呵呵呵~
2.2.2,亲测有效
果然…
确实有两行 CGContextSetRGBFillColor
现在改完正常了… 囧rz
多谢多谢