cocoapods获取图片地址失败
UIImage *image = [UIImage imageNamed:@"Hello"]; // 赋值到Xcode工程中,肉眼不可见空格 通过上述代码获取图片信息,但是死活获取不到。 尝试了网上的方法使用Bundle,依然无果 + (nullable UIImage *)imageNamed:(NSString *)name inBundle:(nullable NSBundle *)bundle withConfiguration:(nullable UIImageConfiguration *)configuration API_AVAILABLE(ios(13.0),tvos(13.0),watchos(6.0)); 最后关注点转移到@“Hello”字符上,打印下如下 NSString *str = @"Hello"; // xcode空格没显示 NSLog(@"Str = %@",str); Str = Hello\^P 打印结果多了\^P 在Word中是软回车符,为什么会在Xcode中隐藏特殊字符,至此我复制到了Sublime Text上 发现多了个<0x10>??? 通过十六进制ASCII表代表的是DLE 英文缩写词:DLE 英文单词:Data Link Escape 缩写词中文简要解释:数据链路转义 以下手敲字符串和复制的字符串,肉眼看不出哪不一样