阅读背景:

根据创建日期对NSURL对象数组进行排序

来源:互联网 

My caches images to a directory (/Library/Caches/ImageCache/). When the directory exceeds a certain size I would like to delete the oldest file in the directory. To accomplish this task I use NSFileManager to retrieve the directory contents. I then try to sort this array by date and delete the oldest object. My caches images to a directory (/Library/Cache




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: