排序
iOS NSString 替换字符串
iOS NSString 替换字符串 - (NSString *)stringByReplacingOccurrencesOfString:(NSString *)target withString:(NSString *)replacement options:(NSStringCompareOptions)options range:(NSRa...
iOS NSURL URLWithString 与 fileURLWithPath 区别
iOS NSURL URLWithString 与 fileURLWithPath 区别 - URLWithString 与 fileURLWithPath 的区别在于前者用于网络,后者用于本地 NSURL *appURL = [NSURLURLWithString:urlString]; //网络url NS...
Xcode – Xcode13 The Legacy Build System will be removed in a future release
Xcode – Xcode13 The Legacy Build System will be removed in a future release - The Legacy Build System will be removed in a future release. You can configure the selected build sys...
Object-C 保存文件到相册
Object-C 保存文件到相册 1.UIImageWriteToSavedPhotosAlbum 2.AssetsLibrary 3.PHPhotoLibrary Xcode – This app has attempted to access privacy-sensitive data without a usage descripti...
iOS NSString 和 bool 相互转换
iOS NSString 和 bool 相互转换 NSString *str1 = @'YES'; NSString *str2 = @'NO'; //ok NSLog(@'str1 = %d str2 = %d',[str1 boolValue],[str2 boolValue]); BOOL a = YES; BOOL b = NO; NSSt...
IOS – UIImage imageWithContentsOfFile 和 imageNamed 区别
IOS - UIImage imageWithContentsOfFil 和 imageNamed 区别 - 使用 imageNamed 加载沙盒的素材,偶尔不正常,有时候为上一次加载的素材,即路径正常,加载的素材又可能是上一次缓冲区的素材(头...















