NSString

//以””为分界将字符拆分为2个
str = @“26_1”;
NSString *bloggerID = [str componentsSeparatedByString:@"
"][0];//取第0个

[self loadDataList:nil success:^{
[weakSelf.tableView reloadData];
} failure:^{
[weakSelf showErrorMsg:@"网络不给力,数据请求失败."];
}];

你可能感兴趣的:(NSString)