Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我从我的服务器收到此响应,但不确定如何将其解析为易于量化的字符串。
我收到什么“[”是“]”
我想要什么@“是”
我相信这很简单我只是累了
NSString *stringToCheck = @"['Yes']"; NSString *value = [foo substringWithRange:NSMakeRange(2, [foo length] - 2 * 2)];
有利于您检查的来源:
如何获取 nsstring 的子字符串
在 nsstring 内搜索