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

对Navi的一些疑问 #18

Open
xianzhiliao opened this issue Feb 17, 2016 · 1 comment
Open

对Navi的一些疑问 #18

xianzhiliao opened this issue Feb 17, 2016 · 1 comment

Comments

@xianzhiliao
Copy link

您好,今天看到Navi这个库,简单地看了下思路,发现跟我之前自己写的一套很相似,但是我很好奇地是并没有看到您对UIImageview的contentMode进行考虑,不知道是否有影响?求指教,谢谢。

@nixzhu
Copy link
Owner

nixzhu commented Feb 17, 2016

缓存的是 UIImage,可以确定其 Size,它怎么显示在 UIImageView 上就不需要太关心。通常,头像都是方的或圆的(或圆角矩形),只需要保证 UIImageView 的 Size 和 UIImage 的 Size 一致即可。Navi 有一个 UIImageView 的设置方法只是为了使用方便而已,它本质上是一套缓存逻辑。

如果有 Navi 的其它问题,欢迎在其项目处讨论。

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

2 participants