|
@@ -171,7 +171,7 @@
|
|
|
#pragma mark - UITableViewDelegate
|
|
|
|
|
|
- (NSArray<UITableViewRowAction *> *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath {
|
|
|
- UITableViewRowAction *deleteAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDestructive title:@"delete" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) {
|
|
|
+ UITableViewRowAction *deleteAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDestructive title:@"Delete" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) {
|
|
|
CPDFBookmarkViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
|
|
|
[self.pdfView.document removeBookmarkForPageIndex:cell.pageIndexLabel.text.floatValue - 1];
|
|
|
NSMutableArray *bookmarks = (NSMutableArray *)self.bookmarks;
|
|
@@ -182,7 +182,7 @@
|
|
|
[self reloadData];
|
|
|
}];
|
|
|
|
|
|
- UITableViewRowAction *editAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDestructive title:@"edit" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) {
|
|
|
+ UITableViewRowAction *editAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDestructive title:@"Edit" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) {
|
|
|
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Edit BookMark" message:nil preferredStyle:UIAlertControllerStyleAlert];
|
|
|
[alert addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) {
|
|
|
textField.placeholder = NSLocalizedString(@"Bookmark Title", nil);
|