iOS 5 ARC懒惰图像加载库 [英] iOS 5 ARC lazy image loading library
问题描述
是否存在与iOS 5 arc兼容的惰性图像加载库?我还没有找到.
Is there an iOS 5 arc compatible lazy Image loading library? I've not found one.
我的下一个想法是让EGOlazyloading一个编译的库并将其链接到我的项目.那行得通吗?有什么建议吗?
My next thought is to make EGOlazyloading a compiled library and link it to my project. Would that work? Any pointers on going about?
谢谢!
推荐答案
我写了一个.您可以在这里下载:
I wrote one. You can download it here:
https://github.com/nicklockwood/AsyncImageView
或者,如果您确实想使用EGO或其他库,请选择编辑">重构">转换为ARC",然后在出现的对话框中有一个下拉菜单,用于选择要转换的文件.
Alternatively, if you do want to use EGO, or some other library, select Edit>Refactor>Convert to ARC and in the dialog that comes up there's a little drop down to select which files to convert.
只需勾选应转换为ARC的文件,然后取消勾选不应该转换的文件.如果文件已经在使用ARC,则将其打勾(不会对其进行两次转换).
Just tick the files that should be converted to ARC and un-tick ones which shouldn't be. If a file is already using ARC then leave it ticked (it won't double convert it).
这使您可以选择将库文件转换为ARC或不理会它们.取消勾选的文件将自动标记为-fno-objc-arc
标志,因此您无需执行任何操作.
That gives you the option of either trying to convert the library files to ARC or to leave them alone. Files that are unticked will be marked with the -fno-objc-arc
flag automatically so you won't have to do anything.
这篇关于iOS 5 ARC懒惰图像加载库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!