gpt4 book ai didi

ios Dropbox图像缩略图在tableview中不使用图像缓存

转载 作者:行者123 更新时间:2023-12-01 16:51:37 25 4
gpt4 key购买 nike

我想在不使用 Dropbox SDK 的情况下将 Dropbox 缩略图放在我的 tableview 中,因为我不想使用图像缓存或其他东西。

如果缩略图不存在,我会放入默认图像,但是当缩略图存在时,我不知道如何从保管箱中获取它并放入我的表格 View 中:

NSString *fileIconName;
if ([[cellDescriptor objectForKey:@"fileThumbnailExists"]boolValue]==YES)
{

}
else {
fileIconName = [cellDescriptor objectForKey:@"fileIcon"];
cell.imageView.image = [UIImage imageNamed:fileIconName];
}

最佳答案

你是说你不想使用 iOS 的 Sync API 吗?您仍然可以使用 Dropbox iOS SDK .使用 iOS SDK 只需设置一个 DBRESTClient 对象,然后调用 /thumbnails endpoint .我不完全确定我理解这个问题,但我希望这会有所帮助。

关于ios Dropbox图像缩略图在tableview中不使用图像缓存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15252538/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com