无法加载""从标识符

时间:2015-05-13 22:16:41

标签: ios uiimageview uistoryboard sdwebimage

这个问题可能是duplicate of this,,但事实并非如此,因为我已经尝试了所提供的解决方案而我找不到任何错误。

从网址加载我的图片时发生了这种情况:

[cell.imageProfile sd_setImageWithURL:[NSURL URLWithString:urlImageProfile]];

urlImageProfile不为空:

enter image description here

单元格和imageProfile很好,实际上以前它有效(当我开始我的项目时)但它现在不起作用我不知道为什么。

这是源代码中的故事板:

<connections>
                                        <outlet property="changeType" destination="JbH-Pl-7B0" id="DfR-Hs-utO"/>
                                        <outlet property="imageProfile" destination="Egw-73-1mx" id="occ-9h-Dgk"/>
<-- etcetera -->

这是图形化的:

enter image description here

这是为了证明我没有预先加载任何图片:

enter image description here

你有线索吗?

非常感谢你。

我正在使用SDWebImage库,我已经看过这段代码:

#pragma mark SDImageCache (private)

- (NSString *)cachedFileNameForKey:(NSString *)key {
    const char *str = [key UTF8String];
    if (str == NULL) {
        str = "";   // PROBABLY LINE OF CODE WHICH CAUSES THE CRASH???
    }
    unsigned char r[CC_MD5_DIGEST_LENGTH];
    CC_MD5(str, (CC_LONG)strlen(str), r);
    NSString *filename = [NSString stringWithFormat:@"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
                                                    r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8], r[9], r[10], r[11], r[12], r[13], r[14], r[15]];

    return filename;
}

无论如何我在那里设置了一个调试点,但它并没有停止。所以它不可能是线索。

我已经检查了内部的NSURL,调试过它并不是nil

0 个答案:

没有答案
相关问题