|
@@ -5188,21 +5188,33 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
- (IBAction)menuItemClick_TwoPagesContinuous:(id)sender {
|
|
|
self.displayViewMode = CPDFDisplayViewTwoUpContinuous;
|
|
|
[self layoutDocumentView];
|
|
|
+ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:CPDFListViewDisplayModeChangeNotification object:self /*userInfo:@{@"viewMode":@"3"}*/];
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
- (IBAction)menuItemClick_TwoPages:(id)sender {
|
|
|
self.displayViewMode = CPDFDisplayViewTwoUp;
|
|
|
[self layoutDocumentView];
|
|
|
+ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:CPDFListViewDisplayModeChangeNotification object:self/* userInfo:@{@"viewMode":@"2"}*/];
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
- (IBAction)menuItemClick_SinglePagesContinuous:(id)sender {
|
|
|
self.displayViewMode = CPDFDisplayViewSinglePageContinuous;
|
|
|
[self layoutDocumentView];
|
|
|
+ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:CPDFListViewDisplayModeChangeNotification object:self/* userInfo:@{@"viewMode":@"1"}*/];
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
- (IBAction)menuItemClick_SinglePage:(id)sender {
|
|
|
self.displayViewMode = CPDFDisplayViewSinglePage;
|
|
|
[self layoutDocumentView];
|
|
|
+ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:CPDFListViewDisplayModeChangeNotification object:self /*userInfo:@{@"viewMode":@"0"}*/];
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
- (IBAction)menuItemClick_BookMode:(id)sender {
|