OGeek|极客世界-中国程序员成长平台

标题: ios - 纹理ASButtonNode,如何设置文本右侧的图像 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 20:02
标题: ios - 纹理ASButtonNode,如何设置文本右侧的图像

enter image description here

这样,标题和图片的距离可以自定义



Best Answer-推荐答案


你可以使用ASOverlayLayoutSpec

像这样。

------------ASOverlayLayoutSpec------------ 
|  -ASInsetLayoutSpec  ASInsetLayoutSpec  | 
|  |  ASButtonNode  |  |  ASImageNode  |  | 
|  ------------------  -----------------  | 
------------------------------------------- 

引用

http://texturegroup.org/docs/layout2-layoutspec-types.html#asoverlaylayoutspec http://texturegroup.org/docs/automatic-layout-examples-2.html

关于ios - 纹理ASButtonNode,如何设置文本右侧的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44923789/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4