Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片支持方式太不友好了 #6

Open
JmoVxia opened this issue Dec 21, 2016 · 9 comments
Open

图片支持方式太不友好了 #6

JmoVxia opened this issue Dec 21, 2016 · 9 comments

Comments

@JmoVxia
Copy link

JmoVxia commented Dec 21, 2016

如果需要改变的图片很多,最后回调回来的是一个数组,在里边根本找不到对应的控件来设置对应的图片,不可能每一个都添加tag标记,然后通过tag来设置吧?

@balinghousheng
Copy link

同问,一般只有有白天和夜晚两种皮肤模式,图片支持方式不友好。

@wuyeRoy
Copy link

wuyeRoy commented Jan 10, 2017

Sketch切出来的图片 更换主题时 会把细节全部覆盖 eg:Demo中间按钮的白色加号也会渲染成其他颜色。但是你的图片却不会。这两张图片有什么区别吗? @iphone5solo

@ko1o
Copy link
Owner

ko1o commented Jan 10, 2017

@wuyeRoy 我使用的是一张图片。 设置渲染模式为UIImageRenderingModeAlwaysTemplate

[plusBtn setImage:[[UIImage imageNamed:@"tab_publish_nor"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate] forState:UIControlStateNormal];

@wuyeRoy
Copy link

wuyeRoy commented Jan 10, 2017

@iphone5solo 我就是在你的demo上改的 只是将图片换成我自己的图片而已,也就放了一张3X的。但是出现了这样的效果,想问下你图片有什么不同 或者我应该做怎么样的调整?

@ko1o
Copy link
Owner

ko1o commented Jan 10, 2017

@wuyeRoy 你的图是什么? 怎样的效果?截一下图

@wuyeRoy
Copy link

wuyeRoy commented Jan 10, 2017

@iphone5solo
效果图:2017-01-10 1 06 46
原图:
ih_feedbck_circleadd 3x

@ko1o
Copy link
Owner

ko1o commented Jan 10, 2017

这是图片的问题,可能和图片的渲染层次有关,这个具体我也不大了解,可以询问美工!

@wuyeRoy
Copy link

wuyeRoy commented Jan 10, 2017

@iphone5solo 好的
Thank you!

@wuyeRoy
Copy link

wuyeRoy commented Jan 10, 2017

我的问题是:我的图片中间加号并非镂空的 ,而是加上去的一张小图片.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants