浏览代码

Apex Mobile

修改quick look preview,实现系统默认action button 的隐藏
Ray Zhang 8 年之前
父节点
当前提交
04e033556d

二进制
Ants Contract/AntsContract.xcworkspace/xcuserdata/Ray.xcuserdatad/UserInterfaceState.xcuserstate


+ 6 - 0
Apex Mobile/Apex Mobile.xcodeproj/project.pbxproj

@@ -156,6 +156,7 @@
 		71F67CF619063612004E8462 /* ApexHistoryViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 71F67CF519063612004E8462 /* ApexHistoryViewController.m */; };
 		71F67CF919065EA8004E8462 /* SimpleMenu.m in Sources */ = {isa = PBXBuildFile; fileRef = 71F67CF819065EA8004E8462 /* SimpleMenu.m */; };
 		71F67CFC19066375004E8462 /* PulldownMenu.m in Sources */ = {isa = PBXBuildFile; fileRef = 71F67CFB19066375004E8462 /* PulldownMenu.m */; };
+		71FCDE0720492B5E00B0746B /* MyQLPreviewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 71FCDE0620492B5E00B0746B /* MyQLPreviewController.m */; };
 /* End PBXBuildFile section */
 
 /* Begin PBXContainerItemProxy section */
@@ -426,6 +427,8 @@
 		71F67CF819065EA8004E8462 /* SimpleMenu.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SimpleMenu.m; sourceTree = "<group>"; };
 		71F67CFA19066375004E8462 /* PulldownMenu.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PulldownMenu.h; sourceTree = "<group>"; };
 		71F67CFB19066375004E8462 /* PulldownMenu.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PulldownMenu.m; sourceTree = "<group>"; };
+		71FCDE0520492B5E00B0746B /* MyQLPreviewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MyQLPreviewController.h; sourceTree = "<group>"; };
+		71FCDE0620492B5E00B0746B /* MyQLPreviewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MyQLPreviewController.m; sourceTree = "<group>"; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
@@ -1025,6 +1028,8 @@
 				71B7999A2021B22D00F8685E /* AMResultViewController.m */,
 				4235C30220229F7200A99D04 /* Result.xib */,
 				4235C3042022A60A00A99D04 /* ResultCell.xib */,
+				71FCDE0520492B5E00B0746B /* MyQLPreviewController.h */,
+				71FCDE0620492B5E00B0746B /* MyQLPreviewController.m */,
 			);
 			name = result;
 			sourceTree = "<group>";
@@ -1252,6 +1257,7 @@
 				711DC6B218C30A4800FB1749 /* TableCellEdit.m in Sources */,
 				71A01D8218C9BA67003307A9 /* DetailContent.m in Sources */,
 				71A003FC18D680560057CDFD /* RetrievePasswordViewController.m in Sources */,
+				71FCDE0720492B5E00B0746B /* MyQLPreviewController.m in Sources */,
 				71F67CF919065EA8004E8462 /* SimpleMenu.m in Sources */,
 				719A51BA18C5AB7B0080C075 /* SimpleGridComponent.m in Sources */,
 				71570996202157A600EFE5C5 /* RAUtils.m in Sources */,

二进制
Apex Mobile/Apex Mobile.xcodeproj/project.xcworkspace/xcuserdata/Ray.xcuserdatad/UserInterfaceState.xcuserstate


+ 146 - 34
Apex Mobile/Apex Mobile.xcodeproj/xcuserdata/Ray.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -10,7 +10,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailPageViewController.m"
-            timestampString = "540198338.145775"
+            timestampString = "541666700.8247679"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "849"
@@ -26,7 +26,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/customUI/MDHTMLLabel.m"
-            timestampString = "540198338.162725"
+            timestampString = "540282991.5085551"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "419"
@@ -42,12 +42,12 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailPageViewController.m"
-            timestampString = "540198338.170171"
+            timestampString = "541666700.824916"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "502"
             endingLineNumber = "502"
-            landmarkName = "-tableView:heightForRowAtIndexPath:"
+            landmarkName = "-webViewDidFinishLoad:"
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
@@ -58,12 +58,12 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailPageViewController.m"
-            timestampString = "540198338.171205"
+            timestampString = "541666700.824995"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "519"
             endingLineNumber = "519"
-            landmarkName = "-tableView:heightForRowAtIndexPath:"
+            landmarkName = "-sectionSwitchClick:"
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
@@ -74,12 +74,12 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailPageViewController.m"
-            timestampString = "540198338.172127"
+            timestampString = "541666700.825062"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "525"
             endingLineNumber = "525"
-            landmarkName = "-tableView:heightForRowAtIndexPath:"
+            landmarkName = "-sectionSwitchClick:"
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
@@ -90,13 +90,13 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailPageViewController.m"
-            timestampString = "540198338.173069"
+            timestampString = "541666700.825128"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "528"
             endingLineNumber = "528"
-            landmarkName = "-tableView:heightForRowAtIndexPath:"
-            landmarkType = "7">
+            landmarkName = "DetailPageViewController"
+            landmarkType = "3">
          </BreakpointContent>
       </BreakpointProxy>
       <BreakpointProxy
@@ -106,7 +106,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailPageViewController.m"
-            timestampString = "540198338.173931"
+            timestampString = "541666700.825192"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "853"
@@ -138,13 +138,13 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../common/customUI/ResultViewController.m"
-            timestampString = "540198338.177639"
+            timestampString = "541668428.656579"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "380"
             endingLineNumber = "380"
-            landmarkName = "-labelTapAction:"
-            landmarkType = "7">
+            landmarkName = "ResultViewController"
+            landmarkType = "3">
          </BreakpointContent>
       </BreakpointProxy>
       <BreakpointProxy
@@ -154,13 +154,13 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../common/customUI/ResultViewController.m"
-            timestampString = "540198338.182852"
+            timestampString = "541668428.65666"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "386"
             endingLineNumber = "386"
-            landmarkName = "-labelTapAction:"
-            landmarkType = "7">
+            landmarkName = "ResultViewController"
+            landmarkType = "3">
          </BreakpointContent>
       </BreakpointProxy>
       <BreakpointProxy
@@ -170,13 +170,13 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../common/customUI/ResultViewController.m"
-            timestampString = "540198338.1877691"
+            timestampString = "541668428.656715"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "379"
             endingLineNumber = "379"
-            landmarkName = "-labelTapAction:"
-            landmarkType = "7">
+            landmarkName = "ResultViewController"
+            landmarkType = "3">
          </BreakpointContent>
       </BreakpointProxy>
       <BreakpointProxy
@@ -186,7 +186,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../common/customUI/ResultViewController.m"
-            timestampString = "540198338.1896189"
+            timestampString = "541668428.6567661"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "509"
@@ -202,7 +202,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../common/customUI/ResultViewController.m"
-            timestampString = "540198338.190889"
+            timestampString = "541668428.6568151"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "677"
@@ -218,7 +218,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../common/customUI/ResultViewController.m"
-            timestampString = "540198338.192211"
+            timestampString = "541668428.656863"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "650"
@@ -234,7 +234,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../common/customUI/ResultViewController.m"
-            timestampString = "540198338.1936049"
+            timestampString = "541668428.656909"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "668"
@@ -250,7 +250,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/customUI/MDHTMLLabel.m"
-            timestampString = "540198338.195097"
+            timestampString = "540282991.514539"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "1033"
@@ -266,7 +266,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/customUI/MDHTMLLabel.m"
-            timestampString = "540198338.196063"
+            timestampString = "540282991.515177"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "938"
@@ -282,7 +282,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/customUI/MDHTMLLabel.m"
-            timestampString = "540198338.196981"
+            timestampString = "540282991.5156749"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "1041"
@@ -298,7 +298,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/customUI/MDHTMLLabel.m"
-            timestampString = "540198338.197719"
+            timestampString = "540282991.516336"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "921"
@@ -314,7 +314,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/customUI/MDHTMLLabel.m"
-            timestampString = "540198338.198396"
+            timestampString = "540282991.5168819"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "806"
@@ -330,7 +330,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/customUI/MDHTMLLabel.m"
-            timestampString = "540198338.19928"
+            timestampString = "540282991.5173841"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "452"
@@ -346,7 +346,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/customUI/MDHTMLLabel.m"
-            timestampString = "540198338.2038471"
+            timestampString = "540282991.517928"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "943"
@@ -362,7 +362,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/customUI/MDHTMLLabel.m"
-            timestampString = "540198338.204657"
+            timestampString = "540282991.518365"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "1046"
@@ -378,7 +378,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/customUI/MDHTMLLabel.m"
-            timestampString = "540198338.205552"
+            timestampString = "540282991.519138"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "1017"
@@ -387,5 +387,117 @@
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "Apex Mobile/StaticModelistViewController.m"
+            timestampString = "541140691.067881"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "108"
+            endingLineNumber = "108"
+            landmarkName = "-tableView:cellForRowAtIndexPath:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "../common/customUI/ResultViewController.m"
+            timestampString = "541668428.657082"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "1136"
+            endingLineNumber = "1136"
+            landmarkName = "-previewController:previewItemAtIndex:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "Apex Mobile/AMResultViewController.m"
+            timestampString = "541668428.657138"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "74"
+            endingLineNumber = "74"
+            landmarkName = "-viewDidLoad"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "Apex Mobile/MyQLPreviewController.m"
+            timestampString = "541668428.65719"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "27"
+            endingLineNumber = "27"
+            landmarkName = "-viewDidLoad"
+            landmarkType = "7">
+            <Locations>
+               <Location
+                  shouldBeEnabled = "No"
+                  ignoreCount = "0"
+                  continueAfterRunningActions = "No"
+                  symbolName = "-[MyQLPreviewController viewDidLoad]"
+                  moduleName = "Apex Mobile"
+                  usesParentBreakpointCondition = "Yes"
+                  urlString = "file:///Users/ray/Documents/CODE_ERPSuiteIOS/Apex%20Mobile/Apex%20Mobile/MyQLPreviewController.m"
+                  timestampString = "541666700.960372"
+                  startingColumnNumber = "9223372036854775807"
+                  endingColumnNumber = "9223372036854775807"
+                  startingLineNumber = "21"
+                  endingLineNumber = "21"
+                  offsetFromSymbolStart = "103">
+               </Location>
+               <Location
+                  shouldBeEnabled = "No"
+                  ignoreCount = "0"
+                  continueAfterRunningActions = "No"
+                  symbolName = "-[MyQLPreviewController viewDidLoad]"
+                  moduleName = "Apex Mobile"
+                  usesParentBreakpointCondition = "Yes"
+                  urlString = "file:///Users/ray/Documents/CODE_ERPSuiteIOS/Apex%20Mobile/Apex%20Mobile/MyQLPreviewController.m"
+                  timestampString = "541666700.9643739"
+                  startingColumnNumber = "9223372036854775807"
+                  endingColumnNumber = "9223372036854775807"
+                  startingLineNumber = "21"
+                  endingLineNumber = "21"
+                  offsetFromSymbolStart = "111">
+               </Location>
+            </Locations>
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "Apex Mobile/MyQLPreviewController.m"
+            timestampString = "541668428.657567"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "18"
+            endingLineNumber = "18"
+            landmarkName = "-viewDidLoad"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
    </Breakpoints>
 </Bucket>

+ 3 - 0
Apex Mobile/Apex Mobile/AMResultViewController.m

@@ -72,6 +72,9 @@
     
     UIBarButtonItem *saveBtn = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"ic_save"] style:UIBarButtonItemStylePlain target:self action:@selector(saveDocumentClick:)];
     self.quickLook.navigationItem.rightBarButtonItem = saveBtn;
+    
+//    self.quickLook.toolbarItems = nil;
+//    self.quickLook.accessibilityCustomActions = nil;
 }
 
 - (void)saveDocumentClick:(id)sender {

+ 13 - 0
Apex Mobile/Apex Mobile/MyQLPreviewController.h

@@ -0,0 +1,13 @@
+//
+//  MyQLPreviewController.h
+//  Apex Mobile
+//
+//  Created by Ray on 02/03/2018.
+//  Copyright © 2018 United Software Applications, Inc. All rights reserved.
+//
+
+#import <QuickLook/QuickLook.h>
+
+@interface MyQLPreviewController : QLPreviewController
+
+@end

+ 66 - 0
Apex Mobile/Apex Mobile/MyQLPreviewController.m

@@ -0,0 +1,66 @@
+//
+//  MyQLPreviewController.m
+//  Apex Mobile
+//
+//  Created by Ray on 02/03/2018.
+//  Copyright © 2018 United Software Applications, Inc. All rights reserved.
+//
+
+#import "MyQLPreviewController.h"
+
+@interface MyQLPreviewController ()
+
+@end
+
+@implementation MyQLPreviewController
+
+- (void)viewDidLoad {
+    [super viewDidLoad];
+//    self.toolbarItems = nil;
+    
+//    for(UIView* v in self.view.subviews)
+//    {
+//        if ([v isKindOfClass:[UIToolbar class] ]) {
+//            v.hidden = YES;
+//        }
+//    }
+    // Do any additional setup after loading the view.
+}
+-(void)viewWillLayoutSubviews
+{
+    [super viewWillLayoutSubviews];
+    
+//    self.navigationController.navigationBar.hidden = YES;
+    
+//    self.navigationController.toolbar.hidden = YES;
+//    [self.navigationController.toolbar removeFromSuperview];
+//    UIView* v1 = self.navigationController.toolbar.superview;
+//    UIView* v2 = self.navigationController.toolbar;
+    [self.navigationController setToolbarHidden:true];
+    
+//    self.navigationController.toolbar.backgroundColor = [UIColor clearColor];
+    //把tool bar frame置为空,实现隐藏
+    self.navigationController.toolbar.frame = CGRectMake(0, 0, 0, 0);
+//    [self.navigationController.toolbar.superview removeFromSuperview];
+//    // custom view demonstrate
+//    UIView *topView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 30)];
+//    topView.backgroundColor = [UIColor redColor];
+//
+//    [self.view addSubview:topView];
+}
+- (void)didReceiveMemoryWarning {
+    [super didReceiveMemoryWarning];
+    // Dispose of any resources that can be recreated.
+}
+
+/*
+#pragma mark - Navigation
+
+// In a storyboard-based application, you will often want to do a little preparation before navigation
+- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
+    // Get the new view controller using [segue destinationViewController].
+    // Pass the selected object to the new view controller.
+}
+*/
+
+@end

+ 4 - 4
RedAnt ERP Mobile/RedAnt ERP Mobile.xcworkspace/xcuserdata/Ray.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -199,10 +199,10 @@
                   ignoreCount = "0"
                   continueAfterRunningActions = "No"
                   symbolName = "-[ItemSearchViewController collectionView:didSelectItemAtIndexPath:]"
-                  moduleName = "USAI Mobile"
+                  moduleName = "NPD Mobile"
                   usesParentBreakpointCondition = "Yes"
                   urlString = "file:///Users/ray/Documents/CODE_ERPSuiteIOS/RedAnt%20ERP%20Mobile/common/Functions/search+itemsearch/ItemSearchViewController.m"
-                  timestampString = "540027207.277886"
+                  timestampString = "541124671.944628"
                   startingColumnNumber = "9223372036854775807"
                   endingColumnNumber = "9223372036854775807"
                   startingLineNumber = "1999"
@@ -214,10 +214,10 @@
                   ignoreCount = "0"
                   continueAfterRunningActions = "No"
                   symbolName = "-[ItemSearchViewController collectionView:didSelectItemAtIndexPath:]"
-                  moduleName = "USAI Mobile"
+                  moduleName = "NPD Mobile"
                   usesParentBreakpointCondition = "Yes"
                   urlString = "file:///Users/ray/Documents/CODE_ERPSuiteIOS/RedAnt%20ERP%20Mobile/common/Functions/search+itemsearch/ItemSearchViewController.m"
-                  timestampString = "540027207.28153"
+                  timestampString = "541124671.952938"
                   startingColumnNumber = "9223372036854775807"
                   endingColumnNumber = "9223372036854775807"
                   startingLineNumber = "1999"

+ 2 - 1
common/customUI/ResultViewController.h

@@ -9,6 +9,7 @@
 #import <UIKit/UIKit.h>
 //#import "TouchLabel.h"
 #import "MDHTMLLabel.h"
+#import "MyQLPreviewController.h"
 
 UIKIT_EXTERN const int delta;
 @class QLPreviewController;
@@ -39,7 +40,7 @@ UIKIT_EXTERN const int delta;
 @property (nonatomic,copy) NSString *documentPath;
 @property (nonatomic,assign) NSInteger offset;
 @property (nonatomic,strong) NSMutableDictionary *params;
-@property (nonatomic,strong) QLPreviewController *quickLook;
+@property (nonatomic,strong) MyQLPreviewController *quickLook;
 
 @property (assign) unsigned long default_line_color;
 @property (assign) unsigned long default_title_text_size;

+ 4 - 2
common/customUI/ResultViewController.m

@@ -1109,10 +1109,10 @@ const int delta = 25;
 
 #pragma mark - Quick Look
 
-- (QLPreviewController *)quickLook {
+- (MyQLPreviewController *)quickLook {
     if (!_quickLook)
     {
-        _quickLook = [[QLPreviewController alloc] init];
+        _quickLook = [[MyQLPreviewController alloc] init];
         _quickLook.delegate = self;
         _quickLook.dataSource = self;
     }
@@ -1131,6 +1131,8 @@ const int delta = 25;
 
 - (id <QLPreviewItem>) previewController:(QLPreviewController *)controller previewItemAtIndex:(NSInteger)index {
     
+    if(self.documentPath==nil)
+        return nil;
     return [NSURL fileURLWithPath:self.documentPath];
 }