|
@@ -175,6 +175,18 @@
|
|
}
|
|
}
|
|
|
|
|
|
- (void)enterViewerMode {
|
|
- (void)enterViewerMode {
|
|
|
|
+
|
|
|
|
+ if (self.pdfListView.isEdited) {
|
|
|
|
+ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
|
|
+ [self.pdfListView commitEditing];
|
|
|
|
+ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
|
+ [self.pdfListView endOfEditing];
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ [self.pdfListView endOfEditing];
|
|
|
|
+ }
|
|
|
|
+
|
|
self.pdfListView.toolModel = CToolModelViewer;
|
|
self.pdfListView.toolModel = CToolModelViewer;
|
|
self.navigationTitle = NSLocalizedString(@"Viewer", nil);
|
|
self.navigationTitle = NSLocalizedString(@"Viewer", nil);
|
|
[self.titleButton setTitle:self.navigationTitle forState:UIControlStateNormal];
|
|
[self.titleButton setTitle:self.navigationTitle forState:UIControlStateNormal];
|