marinofaggiana преди 5 години
родител
ревизия
9e157a5dd8
променени са 2 файла, в които са добавени 7 реда и са изтрити 5 реда
  1. 5 3
      iOSClient/Viewer/NCViewerPDF/NCViewerPDFSearch.swift
  2. 2 2
      iOSClient/Viewer/NCViewerPDF/NCViewerPDFSearchCell.xib

+ 5 - 3
iOSClient/Viewer/NCViewerPDF/NCViewerPDFSearch.swift

@@ -79,9 +79,11 @@ class NCViewerPDFSearch: UITableViewController, UISearchBarDelegate, PDFDocument
         
         let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as! NCViewerPDFSearchCell
         let pdfSelection = searchResultArray[indexPath.row] as PDFSelection
-        if let pdfOutline = pdfDocument?.outlineItem(for: pdfSelection) {
-            cell.outlineLabel.text = pdfOutline.label
-        }
+        
+        //if let pdfOutline = pdfDocument?.outlineItem(for: pdfSelection) {
+        //    cell.outlineLabel.text = pdfOutline.label
+        //}
+        
         let pdfPage = pdfSelection.pages.first
         cell.pageNumberLabel.text = "Page: " + (pdfPage?.label ?? "")
         

+ 2 - 2
iOSClient/Viewer/NCViewerPDF/NCViewerPDFSearchCell.xib

@@ -17,7 +17,7 @@
                 <rect key="frame" x="0.0" y="0.0" width="320" height="82"/>
                 <autoresizingMask key="autoresizingMask"/>
                 <subviews>
-                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Outline" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="E3H-Rb-4ds">
+                    <label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Outline" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="E3H-Rb-4ds">
                         <rect key="frame" x="16" y="2" width="234" height="21"/>
                         <constraints>
                             <constraint firstAttribute="height" constant="21" id="hgI-GG-pNA"/>
@@ -32,7 +32,7 @@
                             <constraint firstAttribute="width" constant="60" id="r7H-Es-IdO"/>
                         </constraints>
                         <fontDescription key="fontDescription" type="system" pointSize="15"/>
-                        <color key="textColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                        <color key="textColor" systemColor="systemGrayColor" red="0.5568627451" green="0.5568627451" blue="0.57647058819999997" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                         <nil key="highlightedColor"/>
                     </label>
                     <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Search result text can be multiple line too" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7Lr-ib-Zu4">