哈哈哈又把内容删减掉,好吧,实在不知道写啥了。
啊啊啊啊啊啊。"; NSString *orgRnan = [NSString stringWithFormat:@"%@",orgStr]; NSArray* array=[orgRnan componentsSeparatedByString:@"<"];//从字符A中分隔成2个元素的数组 NSLog(@"array:%@",array); //结果是adfsfsfs和dfsdf NSString *temp= @""; for (int i = 0; i < array.count; i ) { NSString *str = array[i]; NSArray* array2=[str componentsSeparatedByString:@">"]; if (array2.count == 1) { temp = [temp stringByAppendingString:str]; } else{ temp = [temp stringByAppendingString:array2[1]]; } } _textView.text = temp;}@end