iOS开发:关于转义字符写入数据库错误的问题

2017-11-23  本文已影响35人  luzsyn

NSString *filePath = [[NSBundle mainBundle] pathForResource:@"File.txt" ofType:nil];
NSString *content = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil];
content = [content stringByReplacingOccurrencesOfString:@"\"" withString:@"'"];
上一篇下一篇

猜你喜欢

热点阅读