diff options
Diffstat (limited to 'iphone/Maps')
15 files changed, 1326 insertions, 67 deletions
diff --git a/iphone/Maps/Classes/CustomViews/DownloadMapRequest/MWMDownloadMapRequest.xib b/iphone/Maps/Classes/CustomViews/DownloadMapRequest/MWMDownloadMapRequest.xib index 48d17c0912..6dc59fd1d0 100644 --- a/iphone/Maps/Classes/CustomViews/DownloadMapRequest/MWMDownloadMapRequest.xib +++ b/iphone/Maps/Classes/CustomViews/DownloadMapRequest/MWMDownloadMapRequest.xib @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> -<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14E46" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES"> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES"> <dependencies> <deployment identifier="iOS"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> @@ -15,12 +15,12 @@ </connections> </placeholder> <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> - <view hidden="YES" opaque="NO" contentMode="scaleToFill" id="wdy-tr-47e" customClass="MWMDownloadMapRequestView"> - <rect key="frame" x="0.0" y="0.0" width="320" height="251"/> + <view opaque="NO" contentMode="scaleToFill" id="wdy-tr-47e" customClass="MWMDownloadMapRequestView"> + <rect key="frame" x="0.0" y="0.0" width="320" height="196"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Moscow & Central" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="288" translatesAutoresizingMaskIntoConstraints="NO" id="ldF-A5-Jo3"> - <rect key="frame" x="16" y="10" width="288" height="21"/> + <rect key="frame" x="16" y="0.0" width="288" height="21"/> <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/> <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="18"/> <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> @@ -31,7 +31,7 @@ </userDefinedRuntimeAttributes> </label> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Axo-F2-0Xb" userLabel="ProgressViewWrapper"> - <rect key="frame" x="144" y="55" width="32" height="32"/> + <rect key="frame" x="144" y="45" width="32" height="32"/> <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> <constraints> <constraint firstAttribute="width" constant="32" id="CcH-aB-wPy"/> @@ -39,8 +39,8 @@ </constraints> </view> <button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ANW-J1-K9x"> - <rect key="frame" x="40" y="51" width="240" height="44"/> - <color key="backgroundColor" red="0.12156862745098039" green="0.59999999999999998" blue="0.32156862745098036" alpha="1" colorSpace="calibratedRGB"/> + <rect key="frame" x="40" y="31" width="240" height="44"/> + <color key="backgroundColor" red="0.11764705882352941" green="0.58823529411764708" blue="0.94117647058823528" alpha="1" colorSpace="calibratedRGB"/> <constraints> <constraint firstAttribute="width" constant="240" id="Nrd-CA-zhn"/> <constraint firstAttribute="height" constant="44" id="tID-44-te5"/> @@ -51,19 +51,19 @@ </state> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="string" keyPath="textColorName" value="whiteColor"/> - <userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="primary"/> + <userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="linkBlue"/> <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular16"/> <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius"> <integer key="value" value="8"/> </userDefinedRuntimeAttribute> - <userDefinedRuntimeAttribute type="string" keyPath="backgroundHighlightedColorName" value="primaryDark"/> + <userDefinedRuntimeAttribute type="string" keyPath="backgroundHighlightedColorName" value="linkBlueDark"/> </userDefinedRuntimeAttributes> <connections> <action selector="downloadMapTouchUpInside:" destination="-1" eventType="touchUpInside" id="tMi-t3-4NI"/> </connections> </button> <button opaque="NO" contentMode="scaleToFill" selected="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Ns9-3f-AnX"> - <rect key="frame" x="40" y="115" width="240" height="24"/> + <rect key="frame" x="40" y="87" width="240" height="24"/> <constraints> <constraint firstAttribute="height" constant="24" id="FMy-No-TLl"/> </constraints> @@ -73,7 +73,7 @@ <color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="0.54000000000000004" colorSpace="calibratedRGB"/> <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/> </state> - <state key="selected" image="radioBtnOn"/> + <state key="selected" image="radioBtnOn_light"/> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="search_vehicle_routes"/> </userDefinedRuntimeAttributes> @@ -82,7 +82,7 @@ </connections> </button> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Ваше местоположение не определено" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="288" translatesAutoresizingMaskIntoConstraints="NO" id="0HQ-hc-mvu"> - <rect key="frame" x="16" y="145" width="288" height="17"/> + <rect key="frame" x="16" y="117" width="288" height="17"/> <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="14"/> <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.54000000000000004" colorSpace="calibratedRGB"/> <nil key="highlightedColor"/> @@ -93,25 +93,28 @@ </userDefinedRuntimeAttributes> </label> <button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="q7R-7R-aMD"> - <rect key="frame" x="40" y="183" width="240" height="44"/> + <rect key="frame" x="40" y="155" width="240" height="32"/> + <constraints> + <constraint firstAttribute="height" constant="32" id="Ewk-3H-tDK"/> + </constraints> <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="16"/> <state key="normal" title="Выбрать другую карту"> - <color key="titleColor" red="0.1215686275" green="0.59999999999999998" blue="0.32156862749999998" alpha="1" colorSpace="calibratedRGB"/> + <color key="titleColor" red="0.1176470588" green="0.58823529409999997" blue="0.94117647059999998" alpha="1" colorSpace="calibratedRGB"/> <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/> </state> <userDefinedRuntimeAttributes> - <userDefinedRuntimeAttribute type="string" keyPath="textColorName" value="primary"/> + <userDefinedRuntimeAttribute type="string" keyPath="textColorName" value="linkBlue"/> <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular16"/> <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius"> <integer key="value" value="8"/> </userDefinedRuntimeAttribute> - <userDefinedRuntimeAttribute type="string" keyPath="layer.borderColorName" value="primary"/> + <userDefinedRuntimeAttribute type="string" keyPath="layer.borderColorName" value="linkBlue"/> <userDefinedRuntimeAttribute type="number" keyPath="layer.borderWidth"> <integer key="value" value="1"/> </userDefinedRuntimeAttribute> <userDefinedRuntimeAttribute type="string" keyPath="textColorHighlightedName" value="whiteColor"/> <userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="whiteColor"/> - <userDefinedRuntimeAttribute type="string" keyPath="backgroundHighlightedColorName" value="primary"/> + <userDefinedRuntimeAttribute type="string" keyPath="backgroundHighlightedColorName" value="linkBlue"/> </userDefinedRuntimeAttributes> <connections> <action selector="selectMapTouchUpInside:" destination="-1" eventType="touchUpInside" id="RXu-BP-tNk"/> @@ -120,12 +123,11 @@ </subviews> <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/> <constraints> - <constraint firstItem="ANW-J1-K9x" firstAttribute="top" secondItem="ldF-A5-Jo3" secondAttribute="bottom" constant="20" id="8ct-NO-wGh"/> + <constraint firstItem="ANW-J1-K9x" firstAttribute="top" secondItem="ldF-A5-Jo3" secondAttribute="bottom" constant="10" id="8ct-NO-wGh"/> + <constraint firstItem="ldF-A5-Jo3" firstAttribute="top" secondItem="wdy-tr-47e" secondAttribute="top" id="DSk-Dw-hDB"/> <constraint firstAttribute="trailing" secondItem="ldF-A5-Jo3" secondAttribute="trailing" constant="16" id="KsU-Ev-FCI"/> <constraint firstItem="q7R-7R-aMD" firstAttribute="top" secondItem="Ns9-3f-AnX" secondAttribute="bottom" constant="44" id="SM5-r0-AS2"/> <constraint firstItem="Axo-F2-0Xb" firstAttribute="top" secondItem="ldF-A5-Jo3" secondAttribute="bottom" constant="24" id="SnX-Nf-mt9"/> - <constraint firstAttribute="bottom" secondItem="q7R-7R-aMD" secondAttribute="bottom" constant="24" id="d8R-jg-AMN"/> - <constraint firstItem="ANW-J1-K9x" firstAttribute="height" secondItem="q7R-7R-aMD" secondAttribute="height" id="eXG-Oy-6Vx"/> <constraint firstItem="Ns9-3f-AnX" firstAttribute="centerX" secondItem="ANW-J1-K9x" secondAttribute="centerX" id="fir-kl-M8E"/> <constraint firstItem="ANW-J1-K9x" firstAttribute="width" secondItem="q7R-7R-aMD" secondAttribute="width" id="gY4-nk-yaY"/> <constraint firstItem="ANW-J1-K9x" firstAttribute="centerX" secondItem="q7R-7R-aMD" secondAttribute="centerX" id="gfS-3M-5zg"/> @@ -135,13 +137,12 @@ <constraint firstAttribute="trailing" secondItem="0HQ-hc-mvu" secondAttribute="trailing" constant="16" id="o8v-fv-loA"/> <constraint firstItem="0HQ-hc-mvu" firstAttribute="leading" secondItem="wdy-tr-47e" secondAttribute="leading" constant="16" id="tED-fC-gYF"/> <constraint firstItem="q7R-7R-aMD" firstAttribute="top" secondItem="0HQ-hc-mvu" secondAttribute="bottom" constant="22" id="u95-8m-bpq"/> - <constraint firstItem="Ns9-3f-AnX" firstAttribute="top" secondItem="ANW-J1-K9x" secondAttribute="bottom" constant="20" id="uJa-y4-6sW"/> + <constraint firstItem="Ns9-3f-AnX" firstAttribute="top" secondItem="ANW-J1-K9x" secondAttribute="bottom" constant="12" id="uJa-y4-6sW"/> <constraint firstItem="ldF-A5-Jo3" firstAttribute="centerX" secondItem="Axo-F2-0Xb" secondAttribute="centerX" id="w4N-6B-zSQ"/> </constraints> <nil key="simulatedStatusBarMetrics"/> <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/> <connections> - <outlet property="bottomSpacing" destination="d8R-jg-AMN" id="NKs-4Y-gl7"/> <outlet property="downloadMapButton" destination="ANW-J1-K9x" id="yVE-8n-ezQ"/> <outlet property="downloadRoutesButton" destination="Ns9-3f-AnX" id="Mh2-Di-igv"/> <outlet property="mapTitleLabel" destination="ldF-A5-Jo3" id="SCT-Zb-Xxq"/> @@ -151,12 +152,12 @@ <outlet property="unknownPositionLabelBottomOffset" destination="u95-8m-bpq" id="qXZ-7m-zS1"/> <outlet property="verticalFreeSpace" destination="SM5-r0-AS2" id="aXL-lW-az3"/> </connections> - <point key="canvasLocation" x="71" y="376"/> + <point key="canvasLocation" x="71" y="403.5"/> </view> </objects> <resources> <image name="radioBtnOff" width="22" height="22"/> - <image name="radioBtnOn" width="22" height="22"/> + <image name="radioBtnOn_light" width="22" height="22"/> </resources> <simulatedMetricsContainer key="defaultSimulatedMetrics"> <simulatedStatusBarMetrics key="statusBar"/> diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/APIBar/MWMAPIBarView.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/APIBar/MWMAPIBarView.xib index 154920e33a..bbfb22d660 100644 --- a/iphone/Maps/Classes/CustomViews/MapViewControls/APIBar/MWMAPIBarView.xib +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/APIBar/MWMAPIBarView.xib @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> -<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14E46" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> <dependencies> <deployment identifier="iOS"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> @@ -7,82 +7,93 @@ <objects> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MWMAPIBar"> <connections> + <outlet property="backArrow" destination="o1J-2M-q1q" id="zVd-Vi-E8Z"/> + <outlet property="backLabel" destination="q2u-CZ-mum" id="Apg-ps-U3w"/> <outlet property="rootView" destination="FkZ-Iu-xPb" id="DQP-Ee-MI0"/> - <outlet property="titleLabel" destination="mDA-8R-aH7" id="9PC-fQ-84Y"/> + <outlet property="timeLabel" destination="8SF-Ek-b3Q" id="e3w-yt-zL1"/> </connections> </placeholder> <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> <view contentMode="scaleToFill" id="FkZ-Iu-xPb" customClass="MWMAPIBarView"> - <rect key="frame" x="0.0" y="0.0" width="320" height="64"/> + <rect key="frame" x="0.0" y="0.0" width="320" height="20"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> <subviews> - <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="o1J-lP-Bbl" userLabel="BackButton"> - <rect key="frame" x="0.0" y="20" width="60" height="44"/> - <constraints> - <constraint firstAttribute="width" constant="60" id="0Xq-E4-45k"/> - <constraint firstAttribute="height" constant="44" id="TaT-76-6ui"/> - </constraints> - <state key="normal" image="btn_back_arrow"> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3oK-0M-Y4f" userLabel="BackButton"> + <rect key="frame" x="0.0" y="0.0" width="154" height="20"/> + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/> + <state key="normal"> <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/> </state> <connections> - <action selector="backButtonTouchUpInside:" destination="-1" eventType="touchUpInside" id="OwO-sp-Vwp"/> + <action selector="back" destination="-1" eventType="touchUpInside" id="8Ya-OU-YSw"/> </connections> </button> - <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="cCi-Af-Nr1" userLabel="ClearButton"> - <rect key="frame" x="252" y="20" width="60" height="44"/> - <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/> + <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="api_arrow_white" translatesAutoresizingMaskIntoConstraints="NO" id="o1J-2M-q1q"> + <rect key="frame" x="6" y="4" width="6" height="12"/> <constraints> - <constraint firstAttribute="width" constant="60" id="Skq-Xm-OYz"/> - <constraint firstAttribute="height" constant="44" id="vGD-rd-i7L"/> + <constraint firstAttribute="height" constant="12" id="Nr0-xN-vbq"/> + <constraint firstAttribute="width" constant="6" id="WVD-zv-5mJ"/> </constraints> - <color key="tintColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/> - <state key="normal" title="Clear"> - <color key="titleShadowColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/> - </state> + </imageView> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Back to GuideWithMe" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="q2u-CZ-mum"> + <rect key="frame" x="16" y="2" width="138" height="17"/> + <constraints> + <constraint firstAttribute="width" constant="200" id="4pX-vS-5lS"/> + </constraints> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="14"/> + <color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/> + <nil key="highlightedColor"/> <userDefinedRuntimeAttributes> - <userDefinedRuntimeAttribute type="string" keyPath="textColorName" value="whiteColor"/> - <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="light17"/> - <userDefinedRuntimeAttribute type="string" keyPath="textColorHighlightedName" value="lightGrayColor"/> - <userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="clear"/> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular14"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="whiteColor"/> </userDefinedRuntimeAttributes> - <connections> - <action selector="clearButtonTouchUpInside:" destination="-1" eventType="touchUpInside" id="f5W-0D-ymT"/> - </connections> - </button> - <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mDA-8R-aH7" userLabel="TitleLabel"> - <rect key="frame" x="68" y="28" width="176" height="26"/> + <variation key="default"> + <mask key="constraints"> + <exclude reference="4pX-vS-5lS"/> + </mask> + </variation> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="88:88" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="8SF-Ek-b3Q"> + <rect key="frame" x="279" y="2" width="36" height="17"/> <constraints> - <constraint firstAttribute="height" constant="26" id="3vv-UQ-sav"/> + <constraint firstAttribute="width" constant="44" id="NPt-Qt-AAm"/> </constraints> - <fontDescription key="fontDescription" type="system" pointSize="17"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="14"/> <color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/> <nil key="highlightedColor"/> <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular14"/> <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="whiteColor"/> - <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="medium17"/> </userDefinedRuntimeAttributes> + <variation key="default"> + <mask key="constraints"> + <exclude reference="NPt-Qt-AAm"/> + </mask> + </variation> </label> </subviews> - <color key="backgroundColor" red="0.094117647058823528" green="0.50196078431372548" blue="0.26666666666666666" alpha="1" colorSpace="calibratedRGB"/> + <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.54000000000000004" colorSpace="calibratedRGB"/> <constraints> - <constraint firstItem="mDA-8R-aH7" firstAttribute="leading" secondItem="o1J-lP-Bbl" secondAttribute="trailing" constant="8" symbolic="YES" id="CSJ-dm-eKC"/> - <constraint firstAttribute="trailing" secondItem="cCi-Af-Nr1" secondAttribute="trailing" constant="8" id="GTn-Gx-70T"/> - <constraint firstAttribute="bottom" secondItem="o1J-lP-Bbl" secondAttribute="bottom" id="J7l-Z3-qSu"/> - <constraint firstItem="cCi-Af-Nr1" firstAttribute="leading" secondItem="mDA-8R-aH7" secondAttribute="trailing" constant="8" symbolic="YES" id="aIR-Mn-d3d"/> - <constraint firstAttribute="bottom" secondItem="mDA-8R-aH7" secondAttribute="bottom" constant="10" id="f1R-8X-PcY"/> - <constraint firstItem="o1J-lP-Bbl" firstAttribute="leading" secondItem="FkZ-Iu-xPb" secondAttribute="leading" id="n6Z-RQ-VZB"/> - <constraint firstAttribute="bottom" secondItem="cCi-Af-Nr1" secondAttribute="bottom" id="yqM-Sn-bts"/> + <constraint firstItem="o1J-2M-q1q" firstAttribute="top" secondItem="FkZ-Iu-xPb" secondAttribute="top" constant="4" id="3Oz-Ez-e75"/> + <constraint firstAttribute="bottom" secondItem="3oK-0M-Y4f" secondAttribute="bottom" id="4NJ-Xx-wvq"/> + <constraint firstItem="3oK-0M-Y4f" firstAttribute="leading" secondItem="FkZ-Iu-xPb" secondAttribute="leading" id="5Ri-ft-fNL"/> + <constraint firstItem="q2u-CZ-mum" firstAttribute="centerY" secondItem="o1J-2M-q1q" secondAttribute="centerY" id="9DP-ep-V5q"/> + <constraint firstItem="q2u-CZ-mum" firstAttribute="leading" secondItem="o1J-2M-q1q" secondAttribute="trailing" constant="4" id="DaL-ZB-gqs"/> + <constraint firstItem="q2u-CZ-mum" firstAttribute="trailing" secondItem="3oK-0M-Y4f" secondAttribute="trailing" id="OkM-wr-J8A"/> + <constraint firstItem="8SF-Ek-b3Q" firstAttribute="centerY" secondItem="o1J-2M-q1q" secondAttribute="centerY" id="iQG-Xm-ZgN"/> + <constraint firstAttribute="trailing" secondItem="8SF-Ek-b3Q" secondAttribute="trailing" constant="6" id="kEb-ko-6Fb"/> + <constraint firstItem="3oK-0M-Y4f" firstAttribute="top" secondItem="FkZ-Iu-xPb" secondAttribute="top" id="rxH-2g-5Mh"/> + <constraint firstItem="o1J-2M-q1q" firstAttribute="leading" secondItem="FkZ-Iu-xPb" secondAttribute="leading" constant="6" id="z4w-5z-vYr"/> </constraints> <nil key="simulatedStatusBarMetrics"/> <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/> <userDefinedRuntimeAttributes> - <userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="primaryDark"/> + <userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="blackStatusBarBackground"/> </userDefinedRuntimeAttributes> <point key="canvasLocation" x="322" y="352"/> </view> </objects> <resources> - <image name="btn_back_arrow" width="12" height="20"/> + <image name="api_arrow_white" width="6" height="12"/> </resources> </document> diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/DownloadView/MWMSearchDownloadViewController.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/DownloadView/MWMSearchDownloadViewController.xib new file mode 100644 index 0000000000..757f573dab --- /dev/null +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/DownloadView/MWMSearchDownloadViewController.xib @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MWMSearchDownloadViewController"> + <connections> + <outlet property="dimButton" destination="n1S-Re-Qu6" id="c6T-Sl-NJS"/> + <outlet property="downloadRequestHolder" destination="6cD-xg-enH" id="CaF-6s-ASu"/> + <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> + </connections> + </placeholder> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <view clipsSubviews="YES" contentMode="scaleToFill" id="i5M-Pr-FkT" customClass="MWMSearchDownloadView"> + <rect key="frame" x="0.0" y="0.0" width="320" height="485"/> + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> + <subviews> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Для поиска мест, построения маршрута скачайте карту и интернет вам больше не понадобится." textAlignment="center" lineBreakMode="wordWrap" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="280" translatesAutoresizingMaskIntoConstraints="NO" id="4UA-Fc-dYk" userLabel="Hint"> + <rect key="frame" x="20" y="40" width="280" height="49"/> + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular14"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="blackSecondaryText"/> + <userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="search_without_internet_advertisement"/> + </userDefinedRuntimeAttributes> + </label> + <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="img_no_map_light" translatesAutoresizingMaskIntoConstraints="NO" id="CVA-tT-ruL" userLabel="Image"> + <rect key="frame" x="80" y="109" width="160" height="160"/> + <constraints> + <constraint firstAttribute="width" constant="160" id="427-iT-32l"/> + <constraint firstAttribute="height" constant="160" id="R9j-GV-pca"/> + </constraints> + </imageView> + <view opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6cD-xg-enH" userLabel="DownloadRequestHolder"> + <rect key="frame" x="0.0" y="289" width="320" height="196"/> + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/> + <constraints> + <constraint firstAttribute="height" constant="196" id="Uih-95-0Zj"/> + </constraints> + </view> + <button hidden="YES" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="n1S-Re-Qu6" userLabel="Dim"> + <rect key="frame" x="0.0" y="0.0" width="320" height="485"/> + <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.26000000000000001" colorSpace="calibratedRGB"/> + <state key="normal"> + <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/> + </state> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="blackHintText"/> + </userDefinedRuntimeAttributes> + <connections> + <action selector="dimTouchUpInside:" destination="-1" eventType="touchUpInside" id="oc2-Rh-pwq"/> + </connections> + </button> + </subviews> + <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> + <constraints> + <constraint firstItem="n1S-Re-Qu6" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="8nb-Jw-QSj"/> + <constraint firstItem="6cD-xg-enH" firstAttribute="top" secondItem="4UA-Fc-dYk" secondAttribute="bottom" constant="200" id="Ke7-JH-Nue"/> + <constraint firstAttribute="trailing" secondItem="4UA-Fc-dYk" secondAttribute="trailing" constant="20" id="LqX-F7-Eby"/> + <constraint firstAttribute="trailing" secondItem="6cD-xg-enH" secondAttribute="trailing" id="TGk-3b-Iol"/> + <constraint firstItem="4UA-Fc-dYk" firstAttribute="centerX" secondItem="CVA-tT-ruL" secondAttribute="centerX" id="Xh7-SW-fJZ"/> + <constraint firstItem="n1S-Re-Qu6" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="gRH-yL-JDW"/> + <constraint firstAttribute="trailing" secondItem="n1S-Re-Qu6" secondAttribute="trailing" id="jmh-u5-Gao"/> + <constraint firstItem="CVA-tT-ruL" firstAttribute="top" secondItem="4UA-Fc-dYk" secondAttribute="bottom" constant="20" id="kiq-1O-R7O"/> + <constraint firstItem="4UA-Fc-dYk" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="40" id="oyb-7Z-IxX"/> + <constraint firstAttribute="bottom" secondItem="n1S-Re-Qu6" secondAttribute="bottom" id="pxv-LM-AYG"/> + <constraint firstItem="6cD-xg-enH" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="qxE-AX-K0w"/> + <constraint firstItem="4UA-Fc-dYk" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="20" id="qzJ-9e-iGj"/> + </constraints> + <nil key="simulatedStatusBarMetrics"/> + <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/> + <connections> + <outlet property="downloadRequestWrapperTopOffset" destination="Ke7-JH-Nue" id="NKe-Yv-8vo"/> + <outlet property="hint" destination="4UA-Fc-dYk" id="Omp-Mz-1rb"/> + <outlet property="hintTopOffset" destination="oyb-7Z-IxX" id="sBx-uG-32y"/> + <outlet property="image" destination="CVA-tT-ruL" id="a0M-o0-oiV"/> + </connections> + <point key="canvasLocation" x="252" y="497.5"/> + </view> + </objects> + <resources> + <image name="img_no_map_light" width="160" height="160"/> + </resources> +</document> diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/MWMSearchView.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/MWMSearchView.xib new file mode 100644 index 0000000000..4400c6d6de --- /dev/null +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/MWMSearchView.xib @@ -0,0 +1,224 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES"> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MWMSearchManager"> + <connections> + <outlet property="contentView" destination="u9y-bx-NGd" id="A03-AI-DbY"/> + <outlet property="rootView" destination="qlt-2e-w3m" id="yqq-AG-own"/> + <outlet property="scrollIndicator" destination="G6M-wl-tUg" id="1Nv-0J-Oaa"/> + <outlet property="scrollIndicatorOffset" destination="pXP-hL-DL3" id="pKG-un-cWZ"/> + <outlet property="searchTextField" destination="hna-zw-Zor" id="IK9-Wx-pk8"/> + <outletCollection property="tabButtons" destination="yHM-kd-o0T" id="UV5-50-cQR"/> + <outletCollection property="tabButtons" destination="YT7-kp-bFI" id="RY3-K3-Vim"/> + </connections> + </placeholder> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <view contentMode="scaleToFill" id="qlt-2e-w3m" customClass="MWMSearchView"> + <rect key="frame" x="0.0" y="0.0" width="320" height="568"/> + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="grH-Hm-JRD" userLabel="InfoWrapper"> + <rect key="frame" x="0.0" y="64" width="320" height="504"/> + <subviews> + <view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="u9y-bx-NGd" userLabel="Content" customClass="MWMSearchContentView"> + <rect key="frame" x="0.0" y="64" width="320" height="440"/> + <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Smx-UL-Mcd" userLabel="TabBar"> + <rect key="frame" x="0.0" y="0.0" width="320" height="64"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="yHM-kd-o0T" userLabel="History" customClass="MWMSearchTabButtonsView"> + <rect key="frame" x="0.0" y="0.0" width="160" height="60"/> + <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="image" keyPath="iconImage" value="ic_history_tab_off"/> + <userDefinedRuntimeAttribute type="image" keyPath="iconImageHighlighted" value="ic_history_tab_on"/> + <userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="history"/> + </userDefinedRuntimeAttributes> + <connections> + <outlet property="delegate" destination="-1" id="Rfz-3u-nB0"/> + </connections> + </view> + <view tag="1" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YT7-kp-bFI" userLabel="Categories" customClass="MWMSearchTabButtonsView"> + <rect key="frame" x="160" y="0.0" width="160" height="60"/> + <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="categories"/> + <userDefinedRuntimeAttribute type="image" keyPath="iconImage" value="ic_category_tab_off"/> + <userDefinedRuntimeAttribute type="image" keyPath="iconImageHighlighted" value="ic_category_tab_on"/> + </userDefinedRuntimeAttributes> + <connections> + <outlet property="delegate" destination="-1" id="HFa-nc-cL3"/> + </connections> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="G6M-wl-tUg" userLabel="ScrollIndicator"> + <rect key="frame" x="0.0" y="60" width="160" height="4"/> + <color key="backgroundColor" red="0.1176470588" green="0.58823529409999997" blue="0.94117647059999998" alpha="1" colorSpace="calibratedRGB"/> + <constraints> + <constraint firstAttribute="height" constant="4" id="k6i-ll-1hB"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="linkBlue"/> + </userDefinedRuntimeAttributes> + </view> + </subviews> + <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> + <constraints> + <constraint firstItem="yHM-kd-o0T" firstAttribute="top" secondItem="Smx-UL-Mcd" secondAttribute="top" id="3j1-jw-8LX"/> + <constraint firstItem="YT7-kp-bFI" firstAttribute="leading" secondItem="yHM-kd-o0T" secondAttribute="trailing" id="CPz-Zq-Upl"/> + <constraint firstItem="yHM-kd-o0T" firstAttribute="leading" secondItem="Smx-UL-Mcd" secondAttribute="leading" id="CiG-5j-NML"/> + <constraint firstItem="G6M-wl-tUg" firstAttribute="top" secondItem="yHM-kd-o0T" secondAttribute="bottom" id="F8A-7M-DZD"/> + <constraint firstAttribute="trailing" secondItem="YT7-kp-bFI" secondAttribute="trailing" id="FaM-kd-VGc"/> + <constraint firstItem="G6M-wl-tUg" firstAttribute="top" secondItem="YT7-kp-bFI" secondAttribute="bottom" id="PJH-Uk-AKu"/> + <constraint firstItem="yHM-kd-o0T" firstAttribute="width" secondItem="G6M-wl-tUg" secondAttribute="width" id="Sh9-x5-DW0"/> + <constraint firstAttribute="height" constant="64" id="U1L-sF-oFx"/> + <constraint firstItem="YT7-kp-bFI" firstAttribute="width" secondItem="yHM-kd-o0T" secondAttribute="width" id="UIr-Jy-xTu"/> + <constraint firstItem="YT7-kp-bFI" firstAttribute="top" secondItem="Smx-UL-Mcd" secondAttribute="top" id="fBe-s6-zJz"/> + <constraint firstItem="G6M-wl-tUg" firstAttribute="leading" secondItem="Smx-UL-Mcd" secondAttribute="leading" id="pXP-hL-DL3"/> + <constraint firstAttribute="bottom" secondItem="G6M-wl-tUg" secondAttribute="bottom" id="v8p-Lf-3HF"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="number" keyPath="layer.shadowRadius"> + <integer key="value" value="2"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="color" keyPath="layer.shadowUIColor"> + <color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.23999999999999999" colorSpace="calibratedRGB"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="number" keyPath="layer.shadowOpacity"> + <integer key="value" value="1"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="size" keyPath="layer.shadowOffset"> + <size key="value" width="0.0" height="0.0"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + </subviews> + <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> + <constraints> + <constraint firstItem="u9y-bx-NGd" firstAttribute="top" secondItem="Smx-UL-Mcd" secondAttribute="bottom" id="D3P-cI-mTV"/> + <constraint firstItem="u9y-bx-NGd" firstAttribute="centerX" secondItem="Smx-UL-Mcd" secondAttribute="centerX" id="Obn-RT-JF1"/> + <constraint firstAttribute="centerX" secondItem="Smx-UL-Mcd" secondAttribute="centerX" id="cZL-tC-JsE"/> + <constraint firstAttribute="width" secondItem="Smx-UL-Mcd" secondAttribute="width" id="ggO-ka-9vl"/> + <constraint firstItem="u9y-bx-NGd" firstAttribute="width" secondItem="Smx-UL-Mcd" secondAttribute="width" id="stA-ZK-6ZL"/> + <constraint firstItem="Smx-UL-Mcd" firstAttribute="top" secondItem="grH-Hm-JRD" secondAttribute="top" id="wq0-ta-MXo"/> + <constraint firstAttribute="bottom" secondItem="u9y-bx-NGd" secondAttribute="bottom" id="ztw-wn-pBJ"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HcT-Cg-vp3" userLabel="SearchBar"> + <rect key="frame" x="0.0" y="20" width="320" height="44"/> + <subviews> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8lb-Vi-0oJ" userLabel="StatusBarBackground"> + <rect key="frame" x="0.0" y="-20" width="320" height="20"/> + <color key="backgroundColor" red="0.12549019610000001" green="0.59607843140000005" blue="0.32156862749999998" alpha="1" colorSpace="calibratedRGB"/> + <constraints> + <constraint firstAttribute="height" constant="20" id="uq8-gE-5iC"/> + </constraints> + </view> + <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Search" adjustsFontSizeToFit="NO" minimumFontSize="17" clearButtonMode="always" translatesAutoresizingMaskIntoConstraints="NO" id="hna-zw-Zor" userLabel="Search" customClass="MWMSearchTextField"> + <rect key="frame" x="8" y="4" width="246" height="36"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="14"/> + <textInputTraits key="textInputTraits" autocorrectionType="no" returnKeyType="search"/> + <connections> + <action selector="textFieldDidEndEditing:" destination="-1" eventType="editingDidEnd" id="1NS-lr-9DA"/> + <action selector="textFieldTextDidChange:" destination="-1" eventType="editingChanged" id="lni-qP-88W"/> + </connections> + </textField> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5Hu-71-uqb"> + <rect key="frame" x="254" y="0.0" width="66" height="44"/> + <constraints> + <constraint firstAttribute="width" constant="66" id="vlY-Wi-Dvw"/> + </constraints> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="15"/> + <state key="normal" title="Cancel"> + <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/> + </state> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="cancel"/> + <userDefinedRuntimeAttribute type="string" keyPath="textColorName" value="whiteColor"/> + </userDefinedRuntimeAttributes> + <connections> + <action selector="cancelButtonPressed" destination="-1" eventType="touchUpInside" id="8EF-82-bpl"/> + </connections> + </button> + </subviews> + <color key="backgroundColor" red="0.12549019607843137" green="0.59607843137254901" blue="0.32156862745098036" alpha="1" colorSpace="calibratedRGB"/> + <constraints> + <constraint firstAttribute="height" constant="44" id="92s-Aa-9VQ"/> + <constraint firstAttribute="bottom" secondItem="hna-zw-Zor" secondAttribute="bottom" constant="4" id="JRS-Wn-APP"/> + <constraint firstItem="hna-zw-Zor" firstAttribute="top" secondItem="HcT-Cg-vp3" secondAttribute="top" constant="4" id="OpQ-jn-TbX"/> + <constraint firstItem="5Hu-71-uqb" firstAttribute="leading" secondItem="hna-zw-Zor" secondAttribute="trailing" id="UnO-5R-Vaq"/> + <constraint firstAttribute="trailing" secondItem="8lb-Vi-0oJ" secondAttribute="trailing" id="cOI-Bb-dVh"/> + <constraint firstItem="5Hu-71-uqb" firstAttribute="top" secondItem="HcT-Cg-vp3" secondAttribute="top" id="jGx-GC-U0a"/> + <constraint firstAttribute="trailing" secondItem="5Hu-71-uqb" secondAttribute="trailing" id="lsP-Aa-SwK"/> + <constraint firstItem="8lb-Vi-0oJ" firstAttribute="top" secondItem="HcT-Cg-vp3" secondAttribute="top" constant="-20" id="noI-hv-7dz"/> + <constraint firstAttribute="bottom" secondItem="5Hu-71-uqb" secondAttribute="bottom" id="qqg-dK-O8g"/> + <constraint firstItem="hna-zw-Zor" firstAttribute="leading" secondItem="HcT-Cg-vp3" secondAttribute="leading" constant="8" id="tLC-W9-2XZ"/> + <constraint firstItem="8lb-Vi-0oJ" firstAttribute="leading" secondItem="HcT-Cg-vp3" secondAttribute="leading" id="wB0-LU-IyU"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="primary"/> + <userDefinedRuntimeAttribute type="number" keyPath="layer.shadowRadius"> + <integer key="value" value="2"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="color" keyPath="layer.shadowUIColor"> + <color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.23999999999999999" colorSpace="calibratedRGB"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="number" keyPath="layer.shadowOpacity"> + <integer key="value" value="1"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="size" keyPath="layer.shadowOffset"> + <size key="value" width="0.0" height="0.0"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + </view> + </subviews> + <constraints> + <constraint firstItem="grH-Hm-JRD" firstAttribute="top" secondItem="HcT-Cg-vp3" secondAttribute="bottom" id="6u9-eF-rU6"/> + <constraint firstAttribute="bottom" secondItem="grH-Hm-JRD" secondAttribute="bottom" id="HgS-sO-zcO"/> + <constraint firstItem="HcT-Cg-vp3" firstAttribute="centerX" secondItem="grH-Hm-JRD" secondAttribute="centerX" id="MLg-DM-m1P"/> + <constraint firstItem="HcT-Cg-vp3" firstAttribute="width" secondItem="grH-Hm-JRD" secondAttribute="width" id="MgO-bz-vxh"/> + <constraint firstItem="HcT-Cg-vp3" firstAttribute="top" secondItem="qlt-2e-w3m" secondAttribute="top" constant="20" id="OqS-Bt-SrV"/> + <constraint firstAttribute="trailing" secondItem="HcT-Cg-vp3" secondAttribute="trailing" id="fue-yU-Sug"/> + <constraint firstItem="HcT-Cg-vp3" firstAttribute="leading" secondItem="qlt-2e-w3m" secondAttribute="leading" id="zLj-Dx-QRd"/> + </constraints> + <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="number" keyPath="layer.shadowRadius"> + <integer key="value" value="2"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="color" keyPath="layer.shadowUIColor"> + <color key="value" white="0.0" alpha="0.23999999999999999" colorSpace="calibratedWhite"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="number" keyPath="layer.shadowOpacity"> + <integer key="value" value="1"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="size" keyPath="layer.shadowOffset"> + <size key="value" width="3" height="0.0"/> + </userDefinedRuntimeAttribute> + </userDefinedRuntimeAttributes> + <connections> + <outlet property="infoWrapper" destination="grH-Hm-JRD" id="CLw-RM-gVN"/> + <outlet property="searchBar" destination="HcT-Cg-vp3" id="FtT-Dm-poQ"/> + <outlet property="tabBar" destination="Smx-UL-Mcd" id="hGo-I2-jz7"/> + <outlet property="tabBarHeight" destination="U1L-sF-oFx" id="EuL-7z-2dA"/> + <outlet property="tabBarTopOffset" destination="wq0-ta-MXo" id="Qih-E6-6fa"/> + </connections> + <point key="canvasLocation" x="236" y="280"/> + </view> + </objects> + <resources> + <image name="ic_category_tab_off" width="28" height="28"/> + <image name="ic_category_tab_on" width="28" height="28"/> + <image name="ic_history_tab_off" width="28" height="28"/> + <image name="ic_history_tab_on" width="28" height="28"/> + </resources> + <simulatedMetricsContainer key="defaultSimulatedMetrics"> + <simulatedStatusBarMetrics key="statusBar"/> + <simulatedOrientationMetrics key="orientation"/> + <simulatedScreenMetrics key="destination" type="retina4"/> + </simulatedMetricsContainer> +</document> diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabButtons/MWMSearchTabButtonsView.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabButtons/MWMSearchTabButtonsView.xib new file mode 100644 index 0000000000..7972735753 --- /dev/null +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabButtons/MWMSearchTabButtonsView.xib @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MWMSearchTabButtonsView"> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="image" keyPath="iconImage" value="ic_category_tab_off"/> + <userDefinedRuntimeAttribute type="image" keyPath="iconImageHighlighted" value="ic_category_tab_on"/> + <userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="categories"/> + </userDefinedRuntimeAttributes> + <connections> + <outlet property="icon" destination="qTf-fd-D9i" id="a7L-Zw-lq7"/> + <outlet property="iconLeft" destination="nQe-W6-JBV" id="DYT-rh-g1b"/> + <outlet property="iconTop" destination="9mE-qq-eao" id="eVe-k5-FHV"/> + <outlet property="label" destination="Lj2-rb-tLK" id="jnz-NA-V4x"/> + <outlet property="labelLeft" destination="oMw-ic-QBY" id="oiH-Gi-daA"/> + <outlet property="labelTop" destination="87u-mS-F8T" id="eTj-rP-YCr"/> + <outlet property="rootView" destination="B2L-gJ-zbV" id="Yd5-mY-RW5"/> + </connections> + </placeholder> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <view contentMode="scaleToFill" id="B2L-gJ-zbV"> + <rect key="frame" x="0.0" y="0.0" width="160" height="60"/> + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> + <subviews> + <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_history_tab_off" highlightedImage="ic_history_tab_on" translatesAutoresizingMaskIntoConstraints="NO" id="qTf-fd-D9i"> + <rect key="frame" x="66" y="6" width="28" height="28"/> + <constraints> + <constraint firstAttribute="width" constant="28" id="ehM-kJ-EwT"/> + <constraint firstAttribute="height" constant="28" id="pcM-3V-mou"/> + </constraints> + </imageView> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="History" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Lj2-rb-tLK"> + <rect key="frame" x="58" y="38" width="45" height="17"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="14"/> + <color key="textColor" red="0.1176470588" green="0.58823529409999997" blue="0.94117647059999998" alpha="1" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular14"/> + </userDefinedRuntimeAttributes> + </label> + </subviews> + <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> + <gestureRecognizers/> + <constraints> + <constraint firstItem="Lj2-rb-tLK" firstAttribute="top" secondItem="B2L-gJ-zbV" secondAttribute="top" constant="38" id="87u-mS-F8T"/> + <constraint firstItem="qTf-fd-D9i" firstAttribute="top" secondItem="B2L-gJ-zbV" secondAttribute="top" constant="6" id="9mE-qq-eao"/> + <constraint firstItem="qTf-fd-D9i" firstAttribute="leading" secondItem="B2L-gJ-zbV" secondAttribute="leading" constant="66" id="nQe-W6-JBV"/> + <constraint firstItem="Lj2-rb-tLK" firstAttribute="leading" secondItem="B2L-gJ-zbV" secondAttribute="leading" constant="58" id="oMw-ic-QBY"/> + </constraints> + <nil key="simulatedStatusBarMetrics"/> + <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/> + <connections> + <outletCollection property="gestureRecognizers" destination="xUD-KM-Vlt" appends="YES" id="64L-Yg-gtZ"/> + </connections> + </view> + <tapGestureRecognizer id="xUD-KM-Vlt"> + <connections> + <action selector="buttonTap:" destination="-1" id="NMO-AX-2G0"/> + </connections> + </tapGestureRecognizer> + </objects> + <resources> + <image name="ic_category_tab_off" width="28" height="28"/> + <image name="ic_category_tab_on" width="28" height="28"/> + <image name="ic_history_tab_off" width="28" height="28"/> + <image name="ic_history_tab_on" width="28" height="28"/> + </resources> +</document> diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/BookmarksTab/MWMSearchBookmarksCell.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/BookmarksTab/MWMSearchBookmarksCell.xib new file mode 100644 index 0000000000..b6a7f04182 --- /dev/null +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/BookmarksTab/MWMSearchBookmarksCell.xib @@ -0,0 +1,113 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" reuseIdentifier="MWMSearchBookmarksCell" id="KGk-i7-Jjw" customClass="MWMSearchBookmarksCell"> + <rect key="frame" x="0.0" y="0.0" width="320" height="44"/> + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> + <tableViewCellContentView key="contentView" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> + <rect key="frame" x="0.0" y="0.0" width="320" height="43"/> + <autoresizingMask key="autoresizingMask"/> + <subviews> + <button opaque="NO" contentMode="center" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="aNc-6m-i8r" userLabel="VisibilityButton"> + <rect key="frame" x="0.0" y="0.0" width="60" height="44"/> + <constraints> + <constraint firstAttribute="width" constant="60" id="g2n-JI-FYq"/> + </constraints> + <state key="normal" image="ic_hide_light"> + <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/> + </state> + <state key="selected" image="ic_show_light"/> + <connections> + <action selector="toggleVisibility" destination="KGk-i7-Jjw" eventType="touchUpInside" id="kEx-DN-uuu"/> + </connections> + </button> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="My Places" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="180" translatesAutoresizingMaskIntoConstraints="NO" id="C8a-9A-ijG" userLabel="Title" customClass="MWMMultilineLabel"> + <rect key="frame" x="60" y="12" width="180" height="20"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="17"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular17"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="blackPrimaryText"/> + </userDefinedRuntimeAttributes> + </label> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="jI8-wj-W4t" userLabel="Separator"> + <rect key="frame" x="60" y="43" width="260" height="1"/> + <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.12" colorSpace="calibratedRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="CQ9-Xa-g1C"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="3" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5ca-Zu-8k4" userLabel="BookmarksCount"> + <rect key="frame" x="244" y="14" width="40" height="16"/> + <constraints> + <constraint firstAttribute="width" constant="40" id="5tD-8h-iTV"/> + <constraint firstAttribute="height" constant="16" id="Ees-st-iT9"/> + </constraints> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.54000000000000004" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular17"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="blackSecondaryText"/> + </userDefinedRuntimeAttributes> + </label> + <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_carrot_light" translatesAutoresizingMaskIntoConstraints="NO" id="obB-B0-hzq" userLabel="OpenArrow"> + <rect key="frame" x="284" y="8" width="28" height="28"/> + <constraints> + <constraint firstAttribute="height" constant="28" id="G3F-hb-qym"/> + <constraint firstAttribute="width" constant="28" id="c9g-F6-qp8"/> + </constraints> + </imageView> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="oya-sL-CmM" userLabel="OpenButton"> + <rect key="frame" x="60" y="0.0" width="260" height="43"/> + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/> + <state key="normal"> + <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/> + </state> + <connections> + <action selector="openBookmarks" destination="KGk-i7-Jjw" eventType="touchUpInside" id="ZFR-Zb-STa"/> + </connections> + </button> + </subviews> + <constraints> + <constraint firstAttribute="bottom" secondItem="aNc-6m-i8r" secondAttribute="bottom" id="7An-wA-kIp"/> + <constraint firstItem="5ca-Zu-8k4" firstAttribute="leading" secondItem="C8a-9A-ijG" secondAttribute="trailing" constant="4" id="A9e-7h-xhc"/> + <constraint firstItem="obB-B0-hzq" firstAttribute="leading" secondItem="5ca-Zu-8k4" secondAttribute="trailing" id="MLa-5I-VK8"/> + <constraint firstAttribute="centerY" secondItem="5ca-Zu-8k4" secondAttribute="centerY" id="PvB-UY-BHT"/> + <constraint firstItem="C8a-9A-ijG" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="12" id="RQK-Vh-9QV"/> + <constraint firstAttribute="centerY" secondItem="obB-B0-hzq" secondAttribute="centerY" id="RsM-af-CzV"/> + <constraint firstItem="jI8-wj-W4t" firstAttribute="top" secondItem="oya-sL-CmM" secondAttribute="bottom" id="SMP-Xq-yYT"/> + <constraint firstItem="jI8-wj-W4t" firstAttribute="leading" secondItem="C8a-9A-ijG" secondAttribute="leading" id="Tw3-pC-BHB"/> + <constraint firstAttribute="trailing" secondItem="obB-B0-hzq" secondAttribute="trailing" constant="8" id="URM-GC-wU3"/> + <constraint firstItem="jI8-wj-W4t" firstAttribute="leading" secondItem="oya-sL-CmM" secondAttribute="leading" id="UpO-nL-Km5"/> + <constraint firstAttribute="trailing" secondItem="jI8-wj-W4t" secondAttribute="trailing" id="a3j-02-ixe"/> + <constraint firstItem="oya-sL-CmM" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="dPf-Hy-Y5t"/> + <constraint firstAttribute="trailing" secondItem="oya-sL-CmM" secondAttribute="trailing" id="lIR-Mi-9dY"/> + <constraint firstAttribute="bottom" secondItem="jI8-wj-W4t" secondAttribute="bottom" id="ozZ-bY-T8b"/> + <constraint firstItem="aNc-6m-i8r" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="rPE-bc-2W5"/> + <constraint firstItem="oya-sL-CmM" firstAttribute="leading" secondItem="aNc-6m-i8r" secondAttribute="trailing" id="tlg-eC-xfe"/> + <constraint firstAttribute="bottom" secondItem="C8a-9A-ijG" secondAttribute="bottom" constant="12" id="uqy-Ik-W0e"/> + <constraint firstItem="aNc-6m-i8r" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="xpT-y7-ntU"/> + </constraints> + </tableViewCellContentView> + <connections> + <outlet property="countLabel" destination="5ca-Zu-8k4" id="USR-pA-xLd"/> + <outlet property="openArrow" destination="obB-B0-hzq" id="IMl-hQ-e7y"/> + <outlet property="titleLabel" destination="C8a-9A-ijG" id="XUf-wc-IPr"/> + <outlet property="visibilityButton" destination="aNc-6m-i8r" id="YkK-Ai-2cV"/> + </connections> + </tableViewCell> + </objects> + <resources> + <image name="ic_carrot_light" width="28" height="28"/> + <image name="ic_hide_light" width="28" height="28"/> + <image name="ic_show_light" width="28" height="28"/> + </resources> +</document> diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/CategoriesTab/MWMSearchCategoryCell.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/CategoriesTab/MWMSearchCategoryCell.xib new file mode 100644 index 0000000000..7d52fb7a7d --- /dev/null +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/CategoriesTab/MWMSearchCategoryCell.xib @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MWMSearchCategoryCell" id="KGk-i7-Jjw" customClass="MWMSearchCategoryCell"> + <rect key="frame" x="0.0" y="0.0" width="320" height="44"/> + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> + <tableViewCellContentView key="contentView" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> + <rect key="frame" x="0.0" y="0.0" width="320" height="43"/> + <autoresizingMask key="autoresizingMask"/> + <subviews> + <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_food_light" translatesAutoresizingMaskIntoConstraints="NO" id="Enr-Zg-Z5s" userLabel="Icon"> + <rect key="frame" x="16" y="8" width="28" height="28"/> + <constraints> + <constraint firstAttribute="height" constant="28" id="Ms6-Dt-ZN5"/> + <constraint firstAttribute="width" constant="28" id="sIw-t0-DIm"/> + </constraints> + </imageView> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="WO3-AY-H0S" userLabel="Separator"> + <rect key="frame" x="60" y="43" width="260" height="1"/> + <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.12" colorSpace="calibratedRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="W6j-8r-VpK"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Food" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ACg-C3-HtA" userLabel="Category label"> + <rect key="frame" x="60" y="12" width="244" height="20"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="17"/> + <color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular17"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="blackPrimaryText"/> + </userDefinedRuntimeAttributes> + </label> + </subviews> + <constraints> + <constraint firstAttribute="centerY" secondItem="Enr-Zg-Z5s" secondAttribute="centerY" id="1q9-qQ-crG"/> + <constraint firstAttribute="bottom" secondItem="WO3-AY-H0S" secondAttribute="bottom" id="4A4-Tc-rGy"/> + <constraint firstAttribute="trailing" secondItem="WO3-AY-H0S" secondAttribute="trailing" id="9AW-4d-CWP"/> + <constraint firstAttribute="trailing" secondItem="ACg-C3-HtA" secondAttribute="trailing" constant="16" id="CG1-fx-Dcg"/> + <constraint firstItem="WO3-AY-H0S" firstAttribute="leading" secondItem="Enr-Zg-Z5s" secondAttribute="trailing" constant="16" id="c0m-Qo-lBf"/> + <constraint firstAttribute="centerY" secondItem="ACg-C3-HtA" secondAttribute="centerY" id="fS6-QL-LXH"/> + <constraint firstItem="Enr-Zg-Z5s" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="naz-Qh-tGQ"/> + <constraint firstItem="ACg-C3-HtA" firstAttribute="leading" secondItem="WO3-AY-H0S" secondAttribute="leading" id="uzK-Ai-LsP"/> + </constraints> + </tableViewCellContentView> + <connections> + <outlet property="icon" destination="Enr-Zg-Z5s" id="FFC-HZ-10q"/> + <outlet property="label" destination="ACg-C3-HtA" id="VP8-Tk-lNV"/> + </connections> + </tableViewCell> + </objects> + <resources> + <image name="ic_food_light" width="28" height="28"/> + </resources> +</document> diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/HistoryTab/MWMSearchHistoryClearCell.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/HistoryTab/MWMSearchHistoryClearCell.xib new file mode 100644 index 0000000000..3778b3315b --- /dev/null +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/HistoryTab/MWMSearchHistoryClearCell.xib @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="MWMSearchHistoryClearCell"> + <rect key="frame" x="0.0" y="0.0" width="320" height="44"/> + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> + <tableViewCellContentView key="contentView" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> + <rect key="frame" x="0.0" y="0.0" width="320" height="43"/> + <autoresizingMask key="autoresizingMask"/> + <subviews> + <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_clear_light" translatesAutoresizingMaskIntoConstraints="NO" id="hch-c6-ulY" userLabel="Icon"> + <rect key="frame" x="16" y="8" width="28" height="28"/> + <constraints> + <constraint firstAttribute="height" constant="28" id="Fs9-lR-wuD"/> + <constraint firstAttribute="width" constant="28" id="sop-aE-OIT"/> + </constraints> + </imageView> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6x5-bn-Z1n" userLabel="Separator"> + <rect key="frame" x="60" y="43" width="260" height="1"/> + <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.12" colorSpace="calibratedRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="fa3-ZJ-pk5"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Clear History" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uUE-gB-cha" userLabel="Clear label"> + <rect key="frame" x="60" y="12" width="244" height="20"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="17"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.54000000000000004" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular17"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="blackSecondaryText"/> + </userDefinedRuntimeAttributes> + </label> + </subviews> + <constraints> + <constraint firstAttribute="bottom" secondItem="6x5-bn-Z1n" secondAttribute="bottom" id="06Q-0q-3Tu"/> + <constraint firstAttribute="centerY" secondItem="hch-c6-ulY" secondAttribute="centerY" id="51N-L0-MsL"/> + <constraint firstItem="hch-c6-ulY" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="EmW-eh-qMa"/> + <constraint firstAttribute="trailing" secondItem="uUE-gB-cha" secondAttribute="trailing" constant="16" id="UyN-wL-XYy"/> + <constraint firstItem="uUE-gB-cha" firstAttribute="leading" secondItem="6x5-bn-Z1n" secondAttribute="leading" id="bJD-xj-etH"/> + <constraint firstAttribute="centerY" secondItem="uUE-gB-cha" secondAttribute="centerY" id="fvq-Ro-rpz"/> + <constraint firstItem="6x5-bn-Z1n" firstAttribute="leading" secondItem="hch-c6-ulY" secondAttribute="trailing" constant="16" id="z5E-on-8XQ"/> + <constraint firstAttribute="trailing" secondItem="6x5-bn-Z1n" secondAttribute="trailing" id="zbS-mM-SJH"/> + </constraints> + </tableViewCellContentView> + </tableViewCell> + </objects> + <resources> + <image name="ic_clear_light" width="28" height="28"/> + </resources> +</document> diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/HistoryTab/MWMSearchHistoryRequestCell.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/HistoryTab/MWMSearchHistoryRequestCell.xib new file mode 100644 index 0000000000..f9086708c1 --- /dev/null +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/HistoryTab/MWMSearchHistoryRequestCell.xib @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MWMSearchHistoryRequestCell" rowHeight="44" id="KGk-i7-Jjw" customClass="MWMSearchHistoryRequestCell"> + <rect key="frame" x="0.0" y="0.0" width="320" height="44"/> + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> + <tableViewCellContentView key="contentView" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> + <rect key="frame" x="0.0" y="0.0" width="320" height="43"/> + <autoresizingMask key="autoresizingMask"/> + <subviews> + <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_history_label_light" translatesAutoresizingMaskIntoConstraints="NO" id="k5o-Xw-buz" userLabel="Icon"> + <rect key="frame" x="16" y="8" width="28" height="28"/> + <constraints> + <constraint firstAttribute="height" constant="28" id="Gjo-VG-g4T"/> + <constraint firstAttribute="width" constant="28" id="jp9-B7-91r"/> + </constraints> + </imageView> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="L0x-sD-vTW" userLabel="Separator"> + <rect key="frame" x="60" y="43" width="260" height="1"/> + <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.12" colorSpace="calibratedRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="bSd-Nh-svm"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" lineBreakMode="wordWrap" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="244" translatesAutoresizingMaskIntoConstraints="NO" id="t8W-bQ-Jgd" userLabel="Request label" customClass="MWMMultilineLabel"> + <rect key="frame" x="60" y="12" width="244" height="20"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="17"/> + <color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular17"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="blackPrimaryText"/> + </userDefinedRuntimeAttributes> + </label> + </subviews> + <constraints> + <constraint firstItem="k5o-Xw-buz" firstAttribute="centerY" secondItem="t8W-bQ-Jgd" secondAttribute="centerY" id="3Iy-eY-txd"/> + <constraint firstItem="t8W-bQ-Jgd" firstAttribute="leading" secondItem="L0x-sD-vTW" secondAttribute="leading" id="9Kd-5m-e66"/> + <constraint firstAttribute="trailing" secondItem="L0x-sD-vTW" secondAttribute="trailing" id="HKO-nm-dox"/> + <constraint firstAttribute="bottom" secondItem="L0x-sD-vTW" secondAttribute="bottom" id="IMW-TE-eBM"/> + <constraint firstAttribute="bottom" secondItem="t8W-bQ-Jgd" secondAttribute="bottom" constant="12" id="a6j-eH-Xha"/> + <constraint firstItem="L0x-sD-vTW" firstAttribute="leading" secondItem="k5o-Xw-buz" secondAttribute="trailing" constant="16" id="bqE-Pi-Dlv"/> + <constraint firstItem="k5o-Xw-buz" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="kRk-cw-mQt"/> + <constraint firstItem="t8W-bQ-Jgd" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="12" id="nAw-8U-Ibx"/> + <constraint firstAttribute="trailing" secondItem="t8W-bQ-Jgd" secondAttribute="trailing" constant="16" id="w0g-Q7-D2m"/> + </constraints> + </tableViewCellContentView> + <connections> + <outlet property="icon" destination="k5o-Xw-buz" id="RKY-vZ-6lM"/> + <outlet property="title" destination="t8W-bQ-Jgd" id="yYX-rB-2pk"/> + </connections> + </tableViewCell> + </objects> + <resources> + <image name="ic_history_label_light" width="28" height="28"/> + </resources> +</document> diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/MWMSearchTabbedCollectionViewCell.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/MWMSearchTabbedCollectionViewCell.xib new file mode 100644 index 0000000000..6ccffad708 --- /dev/null +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/MWMSearchTabbedCollectionViewCell.xib @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <collectionViewCell clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="MWMSearchTabbedCollectionViewCell"> + <rect key="frame" x="0.0" y="0.0" width="320" height="460"/> + <autoresizingMask key="autoresizingMask"/> + <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center"> + <rect key="frame" x="0.0" y="0.0" width="320" height="460"/> + <subviews> + <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" keyboardDismissMode="onDrag" style="plain" separatorStyle="none" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="YiJ-rH-z7n"> + <rect key="frame" x="0.0" y="0.0" width="320" height="460"/> + <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> + </tableView> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bZi-Dr-fme"> + <rect key="frame" x="0.0" y="0.0" width="320" height="460"/> + <subviews> + <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="4et-v9-C1K" userLabel="image"> + <rect key="frame" x="80" y="30" width="160" height="160"/> + <constraints> + <constraint firstAttribute="height" constant="160" id="Elm-p4-rns"/> + <constraint firstAttribute="width" constant="160" id="pph-sj-ip8"/> + </constraints> + </imageView> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="288" translatesAutoresizingMaskIntoConstraints="NO" id="qRp-Py-eMV" userLabel="title"> + <rect key="frame" x="16" y="196" width="288" height="24"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="20"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.87" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular24"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="blackPrimaryText"/> + </userDefinedRuntimeAttributes> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="288" translatesAutoresizingMaskIntoConstraints="NO" id="9f9-p6-shw" userLabel="text"> + <rect key="frame" x="16" y="231" width="288" height="17"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.54000000000000004" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular14"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="blackSecondaryText"/> + </userDefinedRuntimeAttributes> + </label> + </subviews> + <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> + <constraints> + <constraint firstItem="4et-v9-C1K" firstAttribute="centerX" secondItem="qRp-Py-eMV" secondAttribute="centerX" id="A8Z-gH-n7A"/> + <constraint firstItem="qRp-Py-eMV" firstAttribute="leading" secondItem="bZi-Dr-fme" secondAttribute="leading" constant="16" id="AO3-i4-W52"/> + <constraint firstItem="9f9-p6-shw" firstAttribute="top" secondItem="qRp-Py-eMV" secondAttribute="bottom" constant="12" id="F9Z-Ot-Tkr"/> + <constraint firstAttribute="trailing" secondItem="qRp-Py-eMV" secondAttribute="trailing" constant="16" id="OnQ-hw-8Qo"/> + <constraint firstItem="4et-v9-C1K" firstAttribute="top" secondItem="bZi-Dr-fme" secondAttribute="top" constant="30" id="PG3-C8-s7d"/> + <constraint firstItem="9f9-p6-shw" firstAttribute="leading" secondItem="bZi-Dr-fme" secondAttribute="leading" constant="16" id="QtL-o4-uh6"/> + <constraint firstItem="9f9-p6-shw" firstAttribute="centerX" secondItem="qRp-Py-eMV" secondAttribute="centerX" id="auk-Vm-3Fi"/> + <constraint firstItem="qRp-Py-eMV" firstAttribute="top" secondItem="bZi-Dr-fme" secondAttribute="top" constant="196" id="sBL-ds-ryp"/> + <constraint firstAttribute="centerX" secondItem="4et-v9-C1K" secondAttribute="centerX" id="vMr-Wp-rze"/> + <constraint firstAttribute="trailing" secondItem="9f9-p6-shw" secondAttribute="trailing" constant="16" id="wY3-ZC-5VD"/> + </constraints> + </view> + </subviews> + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/> + </view> + <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> + <constraints> + <constraint firstAttribute="bottom" secondItem="bZi-Dr-fme" secondAttribute="bottom" id="00h-aM-pMh"/> + <constraint firstItem="YiJ-rH-z7n" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="45o-kh-87P"/> + <constraint firstAttribute="trailing" secondItem="YiJ-rH-z7n" secondAttribute="trailing" id="ak8-yj-yjX"/> + <constraint firstAttribute="trailing" secondItem="bZi-Dr-fme" secondAttribute="trailing" id="eaC-cR-1Zf"/> + <constraint firstAttribute="bottom" secondItem="YiJ-rH-z7n" secondAttribute="bottom" id="fWe-9o-p8Q"/> + <constraint firstItem="bZi-Dr-fme" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="iAx-ah-Ee9"/> + <constraint firstItem="bZi-Dr-fme" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="jEf-rw-JMK"/> + <constraint firstItem="YiJ-rH-z7n" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="tGS-fN-aa6"/> + </constraints> + <connections> + <outlet property="noResultsImage" destination="4et-v9-C1K" id="juR-eQ-mKo"/> + <outlet property="noResultsText" destination="9f9-p6-shw" id="bMS-iT-D8w"/> + <outlet property="noResultsTitle" destination="qRp-Py-eMV" id="3EX-Hl-xV7"/> + <outlet property="noResultsView" destination="bZi-Dr-fme" id="U4e-0K-J3r"/> + <outlet property="tableView" destination="YiJ-rH-z7n" id="vpg-ar-l9Q"/> + <outlet property="titleTopOffset" destination="sBL-ds-ryp" id="AX1-li-yEV"/> + </connections> + </collectionViewCell> + </objects> +</document> diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/MWMSearchTabbedViewController.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/MWMSearchTabbedViewController.xib new file mode 100644 index 0000000000..f3fadfd194 --- /dev/null +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/MWMSearchTabbedViewController.xib @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MWMSearchTabbedViewController"> + <connections> + <outlet property="tablesCollectionView" destination="8fs-wy-05c" id="ycC-Fg-Weg"/> + <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> + </connections> + </placeholder> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <view contentMode="scaleToFill" id="i5M-Pr-FkT"> + <rect key="frame" x="0.0" y="0.0" width="320" height="504"/> + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> + <subviews> + <collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" bounces="NO" pagingEnabled="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" keyboardDismissMode="onDrag" dataMode="none" translatesAutoresizingMaskIntoConstraints="NO" id="8fs-wy-05c"> + <rect key="frame" x="0.0" y="0.0" width="320" height="504"/> + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/> + <collectionViewLayout key="collectionViewLayout" id="8ub-DU-GR0" customClass="MWMSearchTabbedViewLayout"/> + <connections> + <outlet property="dataSource" destination="-1" id="M1V-Fk-ceD"/> + <outlet property="delegate" destination="-1" id="W44-TW-xd0"/> + </connections> + </collectionView> + </subviews> + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/> + <constraints> + <constraint firstAttribute="trailing" secondItem="8fs-wy-05c" secondAttribute="trailing" id="6en-lL-YsF"/> + <constraint firstAttribute="bottom" secondItem="8fs-wy-05c" secondAttribute="bottom" id="V0V-yW-6Yp"/> + <constraint firstItem="8fs-wy-05c" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="aVC-AK-3SI"/> + <constraint firstItem="8fs-wy-05c" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="gub-1S-qGM"/> + </constraints> + <nil key="simulatedStatusBarMetrics"/> + <nil key="simulatedTopBarMetrics"/> + <nil key="simulatedBottomBarMetrics"/> + <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/> + </view> + </objects> +</document> diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchCommonCell.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchCommonCell.xib new file mode 100644 index 0000000000..ae950e527a --- /dev/null +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchCommonCell.xib @@ -0,0 +1,236 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MWMSearchCommonCell" rowHeight="80" id="KGk-i7-Jjw" customClass="MWMSearchCommonCell"> + <rect key="frame" x="0.0" y="0.0" width="320" height="80"/> + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> + <tableViewCellContentView key="contentView" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> + <rect key="frame" x="0.0" y="0.0" width="320" height="43"/> + <autoresizingMask key="autoresizingMask"/> + <subviews> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" verticalCompressionResistancePriority="751" text="New York Cafe" lineBreakMode="wordWrap" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="220" translatesAutoresizingMaskIntoConstraints="NO" id="4FD-RE-ffF" customClass="MWMMultilineLabel"> + <rect key="frame" x="16" y="12" width="220" height="20"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="17"/> + <color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="bold17"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="blackPrimaryText"/> + </userDefinedRuntimeAttributes> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="30000 km" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="68" translatesAutoresizingMaskIntoConstraints="NO" id="P8X-Xp-AaE"> + <rect key="frame" x="236" y="52" width="68" height="17"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="14"/> + <color key="textColor" red="0.12549019607843137" green="0.58823529411764708" blue="0.95294117647058818" alpha="1" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular14"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="linkBlue"/> + </userDefinedRuntimeAttributes> + </label> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HGm-lZ-JNr" userLabel="Separator"> + <rect key="frame" x="16" y="79" width="304" height="1"/> + <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.12" colorSpace="calibratedRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="ZWt-cn-KrT"/> + </constraints> + </view> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="V8w-dT-7B1" userLabel="ClosedBackground"> + <rect key="frame" x="248" y="16" width="56" height="16"/> + <subviews> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Closed" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wcB-Lv-cex"> + <rect key="frame" x="0.0" y="1" width="56" height="14"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="12"/> + <color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular12"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="whiteColor"/> + <userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="closed"/> + </userDefinedRuntimeAttributes> + </label> + </subviews> + <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.26000000000000001" colorSpace="calibratedRGB"/> + <constraints> + <constraint firstAttribute="height" constant="16" id="Ahy-Bj-hS9"/> + <constraint firstAttribute="centerY" secondItem="wcB-Lv-cex" secondAttribute="centerY" id="HKD-vK-tIf"/> + <constraint firstAttribute="trailing" secondItem="wcB-Lv-cex" secondAttribute="trailing" id="NQK-Dn-xg9"/> + <constraint firstItem="wcB-Lv-cex" firstAttribute="leading" secondItem="V8w-dT-7B1" secondAttribute="leading" id="gLv-OB-7Bi"/> + <constraint firstAttribute="width" constant="56" id="xkl-3E-FRu"/> + </constraints> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius"> + <integer key="value" value="4"/> + </userDefinedRuntimeAttribute> + <userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="blackHintText"/> + </userDefinedRuntimeAttributes> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Сafe" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="26" translatesAutoresizingMaskIntoConstraints="NO" id="5UO-MD-Hgx"> + <rect key="frame" x="16" y="36" width="26" height="14"/> + <constraints> + <constraint firstAttribute="width" relation="greaterThanOrEqual" constant="26" id="O31-Vq-Bsz"/> + </constraints> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.54000000000000004" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular12"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="blackSecondaryText"/> + </userDefinedRuntimeAttributes> + </label> + <view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="AXe-5n-maZ" userLabel="Info"> + <rect key="frame" x="42" y="36" width="120" height="14"/> + <subviews> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="•" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tUT-ew-nNT" userLabel="Dot"> + <rect key="frame" x="1" y="0.0" width="4" height="14"/> + <constraints> + <constraint firstAttribute="width" constant="4" id="bMy-k8-Iqu"/> + </constraints> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.54000000000000004" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular12"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="blackSecondaryText"/> + </userDefinedRuntimeAttributes> + </label> + <label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vjT-oU-iIA"> + <rect key="frame" x="7" y="0.0" width="113" height="14"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.54000000000000004" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular12"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="blackSecondaryText"/> + </userDefinedRuntimeAttributes> + </label> + <view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="aNp-Yw-io2"> + <rect key="frame" x="7" y="0.0" width="113" height="14"/> + <subviews> + <imageView userInteractionEnabled="NO" tag="1" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="hotel_star_off_light" highlightedImage="hotel_star_on_light" translatesAutoresizingMaskIntoConstraints="NO" id="yWm-az-pkX"> + <rect key="frame" x="2" y="2" width="11" height="10"/> + <constraints> + <constraint firstAttribute="height" constant="10" id="PlQ-4v-w8M"/> + <constraint firstAttribute="width" constant="11" id="jwv-No-JFH"/> + </constraints> + </imageView> + <imageView userInteractionEnabled="NO" tag="2" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="hotel_star_off_light" highlightedImage="hotel_star_on_light" translatesAutoresizingMaskIntoConstraints="NO" id="fU0-W2-tgC"> + <rect key="frame" x="17" y="2" width="11" height="10"/> + <constraints> + <constraint firstAttribute="width" constant="11" id="12P-aP-Fcq"/> + <constraint firstAttribute="height" constant="10" id="fci-53-ClD"/> + </constraints> + </imageView> + <imageView userInteractionEnabled="NO" tag="3" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="hotel_star_off_light" highlightedImage="hotel_star_on_light" translatesAutoresizingMaskIntoConstraints="NO" id="E8B-4H-1PX"> + <rect key="frame" x="32" y="2" width="11" height="10"/> + <constraints> + <constraint firstAttribute="height" constant="10" id="ZSp-E8-lN4"/> + <constraint firstAttribute="width" constant="11" id="wJe-R5-W1w"/> + </constraints> + </imageView> + <imageView userInteractionEnabled="NO" tag="4" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="hotel_star_off_light" highlightedImage="hotel_star_on_light" translatesAutoresizingMaskIntoConstraints="NO" id="RuV-jO-kmE"> + <rect key="frame" x="47" y="2" width="11" height="10"/> + <constraints> + <constraint firstAttribute="width" constant="11" id="FuT-Ha-33O"/> + <constraint firstAttribute="height" constant="10" id="QrV-px-9rk"/> + </constraints> + </imageView> + <imageView userInteractionEnabled="NO" tag="5" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="hotel_star_off_light" highlightedImage="hotel_star_on_light" translatesAutoresizingMaskIntoConstraints="NO" id="A5b-Hv-xec"> + <rect key="frame" x="62" y="2" width="11" height="10"/> + <constraints> + <constraint firstAttribute="width" constant="11" id="5Ka-eP-MPM"/> + <constraint firstAttribute="height" constant="10" id="AcP-KG-fP6"/> + </constraints> + </imageView> + </subviews> + <constraints> + <constraint firstAttribute="centerY" secondItem="yWm-az-pkX" secondAttribute="centerY" id="0E9-Bm-hXQ"/> + <constraint firstItem="A5b-Hv-xec" firstAttribute="leading" secondItem="RuV-jO-kmE" secondAttribute="trailing" constant="4" id="4pz-gI-6hO"/> + <constraint firstAttribute="centerY" secondItem="RuV-jO-kmE" secondAttribute="centerY" id="CaG-re-wuW"/> + <constraint firstAttribute="centerY" secondItem="E8B-4H-1PX" secondAttribute="centerY" id="ECo-SI-dTA"/> + <constraint firstItem="E8B-4H-1PX" firstAttribute="leading" secondItem="fU0-W2-tgC" secondAttribute="trailing" constant="4" id="GhI-aZ-fUY"/> + <constraint firstItem="fU0-W2-tgC" firstAttribute="leading" secondItem="yWm-az-pkX" secondAttribute="trailing" constant="4" id="JIo-XT-WI2"/> + <constraint firstAttribute="centerY" secondItem="A5b-Hv-xec" secondAttribute="centerY" id="UbM-hL-vjc"/> + <constraint firstItem="yWm-az-pkX" firstAttribute="leading" secondItem="aNp-Yw-io2" secondAttribute="leading" constant="2" id="mlJ-5B-sYc"/> + <constraint firstAttribute="centerY" secondItem="fU0-W2-tgC" secondAttribute="centerY" id="qss-XT-v7k"/> + <constraint firstItem="RuV-jO-kmE" firstAttribute="leading" secondItem="E8B-4H-1PX" secondAttribute="trailing" constant="4" id="xJk-34-X2s"/> + </constraints> + </view> + </subviews> + <constraints> + <constraint firstItem="vjT-oU-iIA" firstAttribute="top" secondItem="AXe-5n-maZ" secondAttribute="top" id="2uX-zd-E6n"/> + <constraint firstAttribute="bottom" secondItem="tUT-ew-nNT" secondAttribute="bottom" id="BHl-Ua-lit"/> + <constraint firstAttribute="bottom" secondItem="aNp-Yw-io2" secondAttribute="bottom" id="EQo-QA-bL3"/> + <constraint firstAttribute="trailing" secondItem="vjT-oU-iIA" secondAttribute="trailing" id="GTY-Nu-POO"/> + <constraint firstItem="aNp-Yw-io2" firstAttribute="top" secondItem="AXe-5n-maZ" secondAttribute="top" id="ICI-zF-5uv"/> + <constraint firstAttribute="trailing" secondItem="aNp-Yw-io2" secondAttribute="trailing" id="OQb-HD-Hbv"/> + <constraint firstAttribute="bottom" secondItem="vjT-oU-iIA" secondAttribute="bottom" id="PuH-9D-3T5"/> + <constraint firstItem="vjT-oU-iIA" firstAttribute="leading" secondItem="tUT-ew-nNT" secondAttribute="trailing" constant="2" id="UAm-zh-FNA"/> + <constraint firstItem="tUT-ew-nNT" firstAttribute="leading" secondItem="AXe-5n-maZ" secondAttribute="leading" constant="1" id="aGr-G1-DAx"/> + <constraint firstItem="tUT-ew-nNT" firstAttribute="top" secondItem="AXe-5n-maZ" secondAttribute="top" id="gG3-v0-sqQ"/> + <constraint firstItem="aNp-Yw-io2" firstAttribute="leading" secondItem="tUT-ew-nNT" secondAttribute="trailing" constant="2" id="jed-QI-J5C"/> + <constraint firstAttribute="width" constant="120" id="w0I-4z-Bix"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Russia, Moscow & Central, Moscow" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="220" translatesAutoresizingMaskIntoConstraints="NO" id="6pc-4s-GyP" customClass="MWMMultilineLabel"> + <rect key="frame" x="16" y="54" width="220" height="14"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="12"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.54000000000000004" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular12"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="blackSecondaryText"/> + </userDefinedRuntimeAttributes> + </label> + </subviews> + <constraints> + <constraint firstItem="P8X-Xp-AaE" firstAttribute="leading" secondItem="6pc-4s-GyP" secondAttribute="trailing" id="0hr-QT-t0D"/> + <constraint firstItem="5UO-MD-Hgx" firstAttribute="top" secondItem="4FD-RE-ffF" secondAttribute="bottom" constant="4" id="5dn-ca-dCn"/> + <constraint firstItem="AXe-5n-maZ" firstAttribute="leading" secondItem="5UO-MD-Hgx" secondAttribute="trailing" id="61j-Xn-Fhq"/> + <constraint firstItem="AXe-5n-maZ" firstAttribute="height" secondItem="5UO-MD-Hgx" secondAttribute="height" id="Q8G-UX-dmf"/> + <constraint firstItem="4FD-RE-ffF" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="Qld-dY-CQN"/> + <constraint firstAttribute="trailing" secondItem="4FD-RE-ffF" secondAttribute="trailing" constant="84" id="Ugu-lP-b9G"/> + <constraint firstAttribute="trailing" secondItem="P8X-Xp-AaE" secondAttribute="trailing" constant="16" id="VJE-wo-TBb"/> + <constraint firstItem="4FD-RE-ffF" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="12" id="hM6-br-iKE"/> + <constraint firstItem="6pc-4s-GyP" firstAttribute="leading" secondItem="5UO-MD-Hgx" secondAttribute="leading" id="jvQ-jd-XUJ"/> + <constraint firstItem="6pc-4s-GyP" firstAttribute="top" secondItem="5UO-MD-Hgx" secondAttribute="bottom" constant="4" id="kWt-qQ-rRJ"/> + <constraint firstItem="AXe-5n-maZ" firstAttribute="centerY" secondItem="5UO-MD-Hgx" secondAttribute="centerY" id="kfK-H3-3fw"/> + <constraint firstAttribute="trailing" secondItem="V8w-dT-7B1" secondAttribute="trailing" constant="16" id="lr7-cG-wNo"/> + <constraint firstItem="HGm-lZ-JNr" firstAttribute="top" secondItem="6pc-4s-GyP" secondAttribute="bottom" constant="11" id="m1K-R2-0LQ"/> + <constraint firstItem="5UO-MD-Hgx" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="nGL-Ta-pBZ"/> + <constraint firstAttribute="trailing" secondItem="6pc-4s-GyP" secondAttribute="trailing" constant="84" id="nfE-NI-LX9"/> + <constraint firstItem="6pc-4s-GyP" firstAttribute="bottom" secondItem="P8X-Xp-AaE" secondAttribute="bottom" id="q7E-Jg-MYT"/> + <constraint firstItem="HGm-lZ-JNr" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="sq9-C3-M3R"/> + <constraint firstAttribute="bottom" secondItem="HGm-lZ-JNr" secondAttribute="bottom" id="vJc-aE-MsA"/> + <constraint firstItem="V8w-dT-7B1" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="16" id="x1p-sf-n4c"/> + <constraint firstAttribute="trailing" secondItem="HGm-lZ-JNr" secondAttribute="trailing" id="xt0-86-Efu"/> + </constraints> + </tableViewCellContentView> + <connections> + <outlet property="closedView" destination="V8w-dT-7B1" id="5by-Nb-6Ch"/> + <outlet property="distanceLabel" destination="P8X-Xp-AaE" id="Kaw-aR-8uJ"/> + <outlet property="infoLabel" destination="vjT-oU-iIA" id="K5N-O7-B0x"/> + <outlet property="infoRatingView" destination="aNp-Yw-io2" id="8Qa-uM-ARg"/> + <outlet property="infoView" destination="AXe-5n-maZ" id="obW-dd-NLt"/> + <outlet property="locationLabel" destination="6pc-4s-GyP" id="Te0-y3-sVQ"/> + <outlet property="titleLabel" destination="4FD-RE-ffF" id="OQm-o8-LUd"/> + <outlet property="typeLabel" destination="5UO-MD-Hgx" id="lgJ-zE-omX"/> + <outletCollection property="infoRatingStars" destination="yWm-az-pkX" id="KH2-Ui-WLS"/> + <outletCollection property="infoRatingStars" destination="fU0-W2-tgC" id="sV8-aJ-4aA"/> + <outletCollection property="infoRatingStars" destination="E8B-4H-1PX" id="Y6I-PQ-BV5"/> + <outletCollection property="infoRatingStars" destination="RuV-jO-kmE" id="jua-fu-h8l"/> + <outletCollection property="infoRatingStars" destination="A5b-Hv-xec" id="b2k-85-CCP"/> + </connections> + </tableViewCell> + </objects> + <resources> + <image name="hotel_star_off_light" width="11" height="10"/> + <image name="hotel_star_on_light" width="11" height="10"/> + </resources> +</document> diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchShowOnMapCell.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchShowOnMapCell.xib new file mode 100644 index 0000000000..a2ab389a11 --- /dev/null +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchShowOnMapCell.xib @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="MWMSearchShowOnMapCell"> + <rect key="frame" x="0.0" y="0.0" width="320" height="44"/> + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> + <tableViewCellContentView key="contentView" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> + <rect key="frame" x="0.0" y="0.0" width="320" height="43"/> + <autoresizingMask key="autoresizingMask"/> + <subviews> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Show On Map" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0Ch-mz-VzP"> + <rect key="frame" x="16" y="12" width="288" height="21"/> + <fontDescription key="fontDescription" name="HelveticaNeue-Bold" family="Helvetica Neue" pointSize="17"/> + <color key="textColor" red="0.12549019610000001" green="0.58823529409999997" blue="0.95294117649999999" alpha="1" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="bold17"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="linkBlue"/> + <userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="search_on_map"/> + </userDefinedRuntimeAttributes> + </label> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="e49-Z8-rFG" userLabel="Separator"> + <rect key="frame" x="0.0" y="43" width="320" height="1"/> + <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.12" colorSpace="calibratedRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="xjZ-xF-fdl"/> + </constraints> + </view> + </subviews> + <constraints> + <constraint firstAttribute="trailing" secondItem="e49-Z8-rFG" secondAttribute="trailing" id="1vY-HD-IIu"/> + <constraint firstItem="e49-Z8-rFG" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="31g-To-Oi7"/> + <constraint firstAttribute="centerY" secondItem="0Ch-mz-VzP" secondAttribute="centerY" id="Krw-QC-Jef"/> + <constraint firstItem="0Ch-mz-VzP" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="Obg-8I-SAB"/> + <constraint firstAttribute="bottom" secondItem="e49-Z8-rFG" secondAttribute="bottom" id="WDR-Pz-C0s"/> + <constraint firstItem="e49-Z8-rFG" firstAttribute="leading" secondItem="0Ch-mz-VzP" secondAttribute="leading" id="eDx-cK-3LA"/> + <constraint firstAttribute="trailing" secondItem="0Ch-mz-VzP" secondAttribute="trailing" constant="16" id="xgg-OV-LnW"/> + </constraints> + <variation key="default"> + <mask key="constraints"> + <exclude reference="eDx-cK-3LA"/> + </mask> + </variation> + </tableViewCellContentView> + </tableViewCell> + </objects> +</document> diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchSuggestionCell.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchSuggestionCell.xib new file mode 100644 index 0000000000..6cc5fe0c13 --- /dev/null +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchSuggestionCell.xib @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="MWMSearchSuggestionCell"> + <rect key="frame" x="0.0" y="0.0" width="320" height="44"/> + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> + <tableViewCellContentView key="contentView" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> + <rect key="frame" x="0.0" y="0.0" width="320" height="43"/> + <autoresizingMask key="autoresizingMask"/> + <subviews> + <imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_search_suggest_light" translatesAutoresizingMaskIntoConstraints="NO" id="1IA-T9-KOb"> + <rect key="frame" x="16" y="7" width="28" height="28"/> + <constraints> + <constraint firstAttribute="width" constant="28" id="TPv-Js-EXq"/> + <constraint firstAttribute="height" constant="28" id="bse-BN-jT9"/> + </constraints> + </imageView> + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="GqR-59-j1h" userLabel="Separator"> + <rect key="frame" x="60" y="43" width="260" height="1"/> + <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.12" colorSpace="calibratedRGB"/> + <constraints> + <constraint firstAttribute="height" constant="1" id="Lg7-yQ-W1g"/> + </constraints> + </view> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="New Arbat Avenue" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gWP-Zj-GCt"> + <rect key="frame" x="60" y="12" width="244" height="21"/> + <fontDescription key="fontDescription" name="HelveticaNeue-Bold" family="Helvetica Neue" pointSize="17"/> + <color key="textColor" red="0.12549019610000001" green="0.58823529409999997" blue="0.95294117649999999" alpha="1" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + </label> + </subviews> + <constraints> + <constraint firstItem="GqR-59-j1h" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="60" id="2a5-qd-cFD"/> + <constraint firstAttribute="centerY" secondItem="gWP-Zj-GCt" secondAttribute="centerY" id="97n-6D-RYM"/> + <constraint firstAttribute="trailing" secondItem="GqR-59-j1h" secondAttribute="trailing" id="Bws-x7-MnZ"/> + <constraint firstAttribute="centerY" secondItem="1IA-T9-KOb" secondAttribute="centerY" constant="0.75" id="DIS-mz-Yl5"/> + <constraint firstAttribute="bottom" secondItem="GqR-59-j1h" secondAttribute="bottom" id="ECE-wu-FiJ"/> + <constraint firstAttribute="trailing" secondItem="gWP-Zj-GCt" secondAttribute="trailing" constant="16" id="c1H-CR-1P7"/> + <constraint firstItem="1IA-T9-KOb" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="l2F-lx-j3x"/> + <constraint firstItem="gWP-Zj-GCt" firstAttribute="leading" secondItem="1IA-T9-KOb" secondAttribute="trailing" constant="16" id="xfc-Vx-bth"/> + </constraints> + </tableViewCellContentView> + <connections> + <outlet property="icon" destination="1IA-T9-KOb" id="eBB-Wj-yU5"/> + <outlet property="separatorLeftOffset" destination="2a5-qd-cFD" id="1MR-I8-VWr"/> + <outlet property="titleLabel" destination="gWP-Zj-GCt" id="P6N-C2-ce6"/> + </connections> + </tableViewCell> + </objects> + <resources> + <image name="ic_search_suggest_light" width="28" height="28"/> + </resources> +</document> diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchTableViewController.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchTableViewController.xib new file mode 100644 index 0000000000..72c7eabd56 --- /dev/null +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchTableViewController.xib @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> + <dependencies> + <deployment identifier="iOS"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> + </dependencies> + <objects> + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MWMSearchTableViewController"> + <connections> + <outlet property="tableView" destination="oZD-Er-6fn" id="Ayl-9n-mV7"/> + <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> + </connections> + </placeholder> + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> + <view clipsSubviews="YES" contentMode="scaleToFill" id="i5M-Pr-FkT" customClass="MWMSearchTableView"> + <rect key="frame" x="0.0" y="0.0" width="320" height="460"/> + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> + <subviews> + <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" keyboardDismissMode="onDrag" style="plain" separatorStyle="none" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="oZD-Er-6fn"> + <rect key="frame" x="0.0" y="0.0" width="320" height="460"/> + <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> + <inset key="separatorInset" minX="15" minY="0.0" maxX="0.0" maxY="0.0"/> + <connections> + <outlet property="dataSource" destination="-1" id="T9n-AG-sHf"/> + <outlet property="delegate" destination="-1" id="Syl-wX-U5b"/> + </connections> + </tableView> + <view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="25T-i3-eR5"> + <rect key="frame" x="0.0" y="0.0" width="320" height="460"/> + <subviews> + <imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="img_no_found_light" translatesAutoresizingMaskIntoConstraints="NO" id="Xva-2d-ze3" userLabel="image"> + <rect key="frame" x="80" y="30" width="160" height="100"/> + <constraints> + <constraint firstAttribute="height" constant="100" id="Ax8-Si-59Z"/> + <constraint firstAttribute="width" constant="160" id="wCn-CD-Osv"/> + </constraints> + </imageView> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="288" translatesAutoresizingMaskIntoConstraints="NO" id="VlC-Yr-hSX" userLabel="text"> + <rect key="frame" x="16" y="160" width="288" height="17"/> + <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="14"/> + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.54000000000000004" colorSpace="calibratedRGB"/> + <nil key="highlightedColor"/> + <userDefinedRuntimeAttributes> + <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular14"/> + <userDefinedRuntimeAttribute type="string" keyPath="colorName" value="blackSecondaryText"/> + <userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="search_not_found"/> + </userDefinedRuntimeAttributes> + </label> + </subviews> + <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> + <constraints> + <constraint firstItem="VlC-Yr-hSX" firstAttribute="top" secondItem="25T-i3-eR5" secondAttribute="top" constant="160" id="8i1-SL-tjs"/> + <constraint firstItem="VlC-Yr-hSX" firstAttribute="leading" secondItem="25T-i3-eR5" secondAttribute="leading" constant="16" id="gVn-UQ-GWx"/> + <constraint firstAttribute="centerX" secondItem="Xva-2d-ze3" secondAttribute="centerX" id="kIp-OL-QdQ"/> + <constraint firstAttribute="trailing" secondItem="VlC-Yr-hSX" secondAttribute="trailing" constant="16" id="lhj-9H-dPK"/> + <constraint firstItem="Xva-2d-ze3" firstAttribute="top" secondItem="25T-i3-eR5" secondAttribute="top" constant="30" id="sK3-Ld-4Os"/> + </constraints> + </view> + </subviews> + <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> + <constraints> + <constraint firstItem="oZD-Er-6fn" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="9cU-AY-lQv"/> + <constraint firstAttribute="trailing" secondItem="oZD-Er-6fn" secondAttribute="trailing" id="DoP-hv-QXb"/> + <constraint firstAttribute="trailing" secondItem="25T-i3-eR5" secondAttribute="trailing" id="fRl-2H-zOe"/> + <constraint firstItem="25T-i3-eR5" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="hGV-2Z-ZbQ"/> + <constraint firstItem="oZD-Er-6fn" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="iKy-dd-6Jt"/> + <constraint firstItem="25T-i3-eR5" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="k08-wO-hIF"/> + <constraint firstAttribute="bottom" secondItem="25T-i3-eR5" secondAttribute="bottom" id="k7w-1s-tbD"/> + <constraint firstAttribute="bottom" secondItem="oZD-Er-6fn" secondAttribute="bottom" id="rgu-oY-7XC"/> + </constraints> + <nil key="simulatedStatusBarMetrics"/> + <nil key="simulatedTopBarMetrics"/> + <nil key="simulatedBottomBarMetrics"/> + <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/> + <connections> + <outlet property="noResultsImage" destination="Xva-2d-ze3" id="aNN-Mo-0W1"/> + <outlet property="noResultsText" destination="VlC-Yr-hSX" id="Str-IK-gv7"/> + <outlet property="noResultsView" destination="25T-i3-eR5" id="q1E-Rv-Plz"/> + <outlet property="tableView" destination="oZD-Er-6fn" id="MfW-RH-aRM"/> + <outlet property="textTopOffset" destination="8i1-SL-tjs" id="4Mq-d1-ugQ"/> + </connections> + </view> + </objects> + <resources> + <image name="img_no_found_light" width="160" height="100"/> + </resources> +</document> |