- +(BOOL)stringContentString:(NSString *)motherString subString:(NSString *)sonString{
- if ([motherString rangeOfString:sonString].location!=NSNotFound) {
- return YES;
- }else {
- return NO;
- }
- }
- //该片段来自于http://www.codesnippet.cn/detail/091220137833.html
来源: http://www.codesnippet.cn/detail/091220137833.html