i want to reload the tableView when the animation finish.
here is my code
-(void)btnEditClicked{
toolbar.hidden=!toolbar.hidden;
editToolbar.hidden=!editToolbar.hidden;
if (!tblView.editing) {
[arrSelectedRows removeAllObjects];
[tblView setEditing:YES animated:YES];
self.navigationItem.rightBarButtonItem = [Utility setRightBarButtonItemWithTarget:self withAction:@selector(btnEditClicked) andWithImage:@"done_btn.png"];
}
else{
self.navigationItem.rightBarButtonItem = [Utility setRightBarButtonItemWithTarget:self withAction:@selector(btnEditClicked) andWithImage:@"edit_btn.png"];
[tblView setEditing:NO animated:YES];
}
// [tblView reloadData]; if i use this line then the animation not working.
}
so is there any methods that call after aniation finish? Please help
也许您可以尝试:
[tblView performSelector:@selector(reloadData) withObject:nil afterDelay:0.3];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.