像这样,标题和图像的距离可以自定义
答案 0 :(得分:0)
您可以使用ASOverlayLayoutSpec
。
------------ASOverlayLayoutSpec------------
| -ASInsetLayoutSpec ASInsetLayoutSpec |
| | ASButtonNode | | ASImageNode | |
| ------------------ ----------------- |
-------------------------------------------
参考
http://texturegroup.org/docs/layout2-layoutspec-types.html#asoverlaylayoutspec http://texturegroup.org/docs/automatic-layout-examples-2.html
答案 1 :(得分:0)
[buttonNode setImageAlignment: ASButtonNodeImageAlignmentEnd];
答案 2 :(得分:0)
2020:快速解决方案
buttonNode.imageAlignment = .end