Skip to content

Commit 5064bf0

Browse files
committed
选择个性标签时增加数量提示信息
1 parent fa99089 commit 5064bf0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Coding_iOS/Controllers/MeSetting/SettingTagsViewController.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPa
118118
if ([tempArray containsObject:tagId]) {
119119
[tempArray removeObject:tagId];
120120
}else{
121+
if (tempArray.count >= 10) {
122+
[self showHudTipStr:@"用户个性标签不能超过10个"];
123+
return;
124+
}
121125
[tempArray addObject:tagId];
122126
}
123127
[collectionView reloadItemsAtIndexPaths:[NSArray arrayWithObject:indexPath]];

0 commit comments

Comments
 (0)