标签:io ar os on bs ios ca 字符串 rom
// Str = @"PEK_LHR"
NSRange range = [trafficeStr rangeOfString:@"_" options:NSBackwardsSearch];
from = [trafficeStr substringToIndex:range.location];
to = [trafficeStr substringFromIndex:range.location + 1];
标签:io ar os on bs ios ca 字符串 rom
原文地址:http://www.cnblogs.com/lihaibo-Leao/p/4153176.html