Browse Source

PDFTool(iOS) - 页码跳转匹配高保真

chenyu 1 year ago
parent
commit
ebc7ff9eb0

+ 4 - 1
compdfkit-tools/compdfkit-tools/Common/Views/PDFView/PDFListView/CPDFListView.m

@@ -227,7 +227,8 @@ NSNotificationName const CPDFListViewAnnotationsOperationChangeNotification = @"
     
     __weak typeof(self) weakSelf = self;
     _pageIndicatorView.touchCallBack = ^{
-        UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil message:NSLocalizedString(@"Enter a page number", nil) preferredStyle:UIAlertControllerStyleAlert];
+        NSString *str = [NSString stringWithFormat:@" Please enter the page numberPage(1/%lu)", weakSelf.document.pageCount];
+        UIAlertController *alertController = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Go To page", nil) message:NSLocalizedString(str, nil) preferredStyle:UIAlertControllerStyleAlert];
         
         [alertController addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"Cancel", nil) style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
             
@@ -253,6 +254,8 @@ NSNotificationName const CPDFListViewAnnotationsOperationChangeNotification = @"
             NSString *str = [NSString stringWithFormat:@"Page(1/%lu)", weakSelf.document.pageCount];
             textField.placeholder = NSLocalizedString(str, nil);
             textField.keyboardType = UIKeyboardTypeNumberPad;
+            textField.clearButtonMode = UITextFieldViewModeWhileEditing;
+            textField.keyboardType = UIKeyboardTypeNumberPad;
             
         }];