在使用cocosstudio控件ImageView时,难免有时候会出现一张图片需要反复替换。
这时就会发现替换图片后出现拉伸的效果。此时只需要这么处理。
1、ImageView:setScale9Enabled(false)
2、ImageView:ignoreContentAdaptWithSize(true)
ImageView替换图片需要注意的点
最新推荐文章于 2024-12-16 12:01:44 发布
博客介绍了在使用CocosStudio控件ImageView时,图片反复替换会出现拉伸效果的问题,并给出了解决办法,即设置ImageView:setScale9Enabled(false)和ImageView:ignoreContentAdaptWithSize(true)。
3971

被折叠的 条评论
为什么被折叠?



