Skip to content

Commit d401ea1

Browse files
committed
任务描述还未加载成功的时候不能点击
1 parent ffb9577 commit d401ea1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Coding_iOS/Controllers/EditTaskViewController.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,10 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
330330
}];
331331
[actionSheet showInView:nil];
332332
};
333-
cell.descriptionBtnClickedBlock = ^(Task *toDelete){
333+
cell.descriptionBtnClickedBlock = ^(Task *task){
334+
if (weakSelf.myCopyTask.has_description && !weakSelf.myCopyTask.task_description) {
335+
return ;
336+
}
334337
[weakSelf goToDescriptionVC];
335338
};
336339

0 commit comments

Comments
 (0)