ios 串

1、是推断包括字符串

        if( [str rangeOfString:@"hello"].location != NSNotFound) {

            

            NSLog(@"yes");

            

        } else {

            

            NSLog(@"no");

        }


版权声明:本文博客原创文章。博客,未经同意,不得转载。

posted @ 2015-07-17 18:26  phlsheji  阅读(124)  评论(0编辑  收藏  举报