//以””为分界将字符拆分为2个
str = @“26_1”;
NSString *bloggerID = [str componentsSeparatedByString:@""][0];//取第0个
[self loadDataList:nil success:^{
[weakSelf.tableView reloadData];
} failure:^{
[weakSelf showErrorMsg:@"网络不给力,数据请求失败."];
}];
//以””为分界将字符拆分为2个
str = @“26_1”;
NSString *bloggerID = [str componentsSeparatedByString:@""][0];//取第0个
[self loadDataList:nil success:^{
[weakSelf.tableView reloadData];
} failure:^{
[weakSelf showErrorMsg:@"网络不给力,数据请求失败."];
}];
本文标题:NSString
本文链接:https://www.haomeiwen.com/subject/pssmwttx.html
网友评论