2
This commit is contained in:
@@ -163,23 +163,10 @@ static NSString * const kKBMyKeyboardCellId = @"kKBMyKeyboardCellId";
|
||||
if (!self) { return; }
|
||||
NSIndexPath *tapIndexPath = [weakCV indexPathForCell:tappedCell];
|
||||
if (!tapIndexPath) { return; }
|
||||
// [KBAlert confirmTitle:@"删除该标签?" message:@"删除后不可恢复" completion:^(BOOL ok) {
|
||||
// if (!ok) { return; }
|
||||
// // 更新数据源并删除 item
|
||||
// if (tapIndexPath.section < self.dataSourceArray.count) {
|
||||
// NSMutableArray *section = self.dataSourceArray[tapIndexPath.section];
|
||||
// if (tapIndexPath.item < section.count) {
|
||||
// [section removeObjectAtIndex:tapIndexPath.item];
|
||||
// [self.collectionView performBatchUpdates:^{
|
||||
// [self.collectionView deleteItemsAtIndexPaths:@[tapIndexPath]];
|
||||
// } completion:nil];
|
||||
// }
|
||||
// }
|
||||
// }];
|
||||
[KBAlert confirmTitle:@"删除该标签?"
|
||||
message:@"删除后不可恢复"
|
||||
ok:@"确定"
|
||||
cancel:@"取消"
|
||||
[KBAlert confirmTitle:KBLocalized(@"Delete this tag?")
|
||||
message:KBLocalized(@"This action cannot be undone")
|
||||
ok:KBLocalized(@"Confirm")
|
||||
cancel:KBLocalized(@"Cancel")
|
||||
okColor:[UIColor redColor]
|
||||
cancelColor:[UIColor blackColor]
|
||||
completion:^(BOOL ok) {
|
||||
@@ -229,7 +216,7 @@ static NSString * const kKBMyKeyboardCellId = @"kKBMyKeyboardCellId";
|
||||
- (void)onSave {
|
||||
// 这里只做示意:保存当前顺序
|
||||
NSLog(@"保存顺序: %@", self.dataSourceArray);
|
||||
[KBHUD showInfo:@"已保存"];
|
||||
[KBHUD showInfo:KBLocalized(@"Saved")];
|
||||
}
|
||||
|
||||
#pragma mark - Lazy UI
|
||||
|
||||
Reference in New Issue
Block a user