/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
iphone/Maps/UI/BottomMenu/Menu/Cells/BottomMenuLayersCell.xib
214 строк
17 KB
Aleksey Belousov
[iOS] update pictures in bottom menu
02 июл 2020, 17:53
02 июл 2020, 17:53
d84288c
Код
Авторство
О чём код?
<?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <device id="ipad9_7" orientation="landscape" layout="fullscreen" appearance="light"/> <dependencies> <deployment identifier="iOS"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </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" rowHeight="165" id="KGk-i7-Jjw" customClass="BottomMenuLayersCell" customModule="maps_me" customModuleProvider="target"> <rect key="frame" x="0.0" y="0.0" width="340" height="165"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" ambiguous="YES" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> <rect key="frame" x="0.0" y="0.0" width="340" height="165"/> <autoresizingMask key="autoresizingMask"/> <subviews> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="W1i-v6-zbz"> <rect key="frame" x="0.0" y="0.0" width="340" height="50"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Map Layers" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Vuk-dn-n2c"> <rect key="frame" x="16" y="13" width="108.5" height="24"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="20"/> <nil key="textColor"/> <nil key="highlightedColor"/> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="string" keyPath="styleName" value="blackPrimaryText:bold22"/> <userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="layers_title"/> </userDefinedRuntimeAttributes> </label> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="2xW-dK-D9y"> <rect key="frame" x="294" y="10" width="30" height="30"/> <constraints> <constraint firstAttribute="height" constant="30" id="BD2-bz-n13"/> <constraint firstAttribute="width" constant="30" id="Thu-MY-dQm"/> </constraints> <state key="normal" image="ic_clear_24"/> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="string" keyPath="styleName" value="PPCloseButton"/> </userDefinedRuntimeAttributes> <connections> <action selector="onCloseButtonPressed:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="8vd-Pg-Suh"/> </connections> </button> </subviews> <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <constraints> <constraint firstAttribute="height" constant="50" id="00h-1i-skR"/> <constraint firstItem="Vuk-dn-n2c" firstAttribute="centerY" secondItem="W1i-v6-zbz" secondAttribute="centerY" id="4du-pr-7hv"/> <constraint firstAttribute="height" constant="45" id="Ez1-s5-1EO"/> <constraint firstItem="Vuk-dn-n2c" firstAttribute="leading" secondItem="W1i-v6-zbz" secondAttribute="leading" constant="16" id="kSJ-Wa-nYA"/> <constraint firstAttribute="trailing" secondItem="2xW-dK-D9y" secondAttribute="trailing" constant="16" id="kae-50-2nG"/> <constraint firstItem="2xW-dK-D9y" firstAttribute="centerY" secondItem="Vuk-dn-n2c" secondAttribute="centerY" id="wCu-O0-cz8"/> </constraints> <variation key="default"> <mask key="constraints"> <exclude reference="00h-1i-skR"/> <exclude reference="Ez1-s5-1EO"/> </mask> </variation> <variation key="heightClass=compact"> <mask key="constraints"> <include reference="Ez1-s5-1EO"/> </mask> </variation> <variation key="heightClass=regular"> <mask key="constraints"> <include reference="00h-1i-skR"/> </mask> </variation> </view> <stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" translatesAutoresizingMaskIntoConstraints="NO" id="sRd-zd-xSl"> <rect key="frame" x="16" y="58" width="308" height="64"/> <subviews> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="PoD-TJ-E1s" customClass="BottomMenuLayerButton" customModule="maps_me" customModuleProvider="target"> <rect key="frame" x="0.0" y="0.0" width="77" height="64"/> <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="image" keyPath="image" value="btn_menu_guides"/> <userDefinedRuntimeAttribute type="number" keyPath="spacing"> <real key="value" value="10"/> </userDefinedRuntimeAttribute> <userDefinedRuntimeAttribute type="number" keyPath="numberOfLines"> <integer key="value" value="2"/> </userDefinedRuntimeAttribute> <userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="button_layer_guides"/> </userDefinedRuntimeAttributes> <connections> <action selector="onGuidesButtonPressed:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="DEl-Vg-Pdk"/> </connections> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="edA-Mo-3Vx" customClass="BottomMenuLayerButton" customModule="maps_me" customModuleProvider="target"> <rect key="frame" x="77" y="0.0" width="77" height="64"/> <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="image" keyPath="image" value="btn_menu_isomaps"/> <userDefinedRuntimeAttribute type="number" keyPath="spacing"> <real key="value" value="10"/> </userDefinedRuntimeAttribute> <userDefinedRuntimeAttribute type="number" keyPath="numberOfLines"> <integer key="value" value="2"/> </userDefinedRuntimeAttribute> <userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="button_layer_isolines"/> </userDefinedRuntimeAttributes> <connections> <action selector="onIsoLinesButton:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="3LS-C2-2Mc"/> </connections> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4US-fZ-cyg" customClass="BottomMenuLayerButton" customModule="maps_me" customModuleProvider="target"> <rect key="frame" x="154" y="0.0" width="77" height="64"/> <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="image" keyPath="image" value="btn_menu_subway"/> <userDefinedRuntimeAttribute type="number" keyPath="spacing"> <real key="value" value="10"/> </userDefinedRuntimeAttribute> <userDefinedRuntimeAttribute type="number" keyPath="numberOfLines"> <integer key="value" value="2"/> </userDefinedRuntimeAttribute> <userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="button_layer_subway"/> </userDefinedRuntimeAttributes> <connections> <action selector="onSubwayButton:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="xxM-kP-gT1"/> </connections> </view> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="X9u-oF-oz8" customClass="BottomMenuLayerButton" customModule="maps_me" customModuleProvider="target"> <rect key="frame" x="231" y="0.0" width="77" height="64"/> <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="image" keyPath="image" value="btn_menu_traffic"/> <userDefinedRuntimeAttribute type="number" keyPath="spacing"> <real key="value" value="10"/> </userDefinedRuntimeAttribute> <userDefinedRuntimeAttribute type="number" keyPath="numberOfLines"> <integer key="value" value="2"/> </userDefinedRuntimeAttribute> <userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="button_layer_traffic"/> </userDefinedRuntimeAttributes> <connections> <action selector="onTrafficButton:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="sfg-OY-ECY"/> </connections> </view> </subviews> <constraints> <constraint firstAttribute="height" constant="70" id="d0H-kE-IWx"/> <constraint firstAttribute="width" relation="lessThanOrEqual" constant="500" id="nea-IB-ZkL"/> <constraint firstAttribute="height" constant="64" id="t9j-kf-yze"/> </constraints> <variation key="default"> <mask key="constraints"> <exclude reference="d0H-kE-IWx"/> <exclude reference="t9j-kf-yze"/> </mask> </variation> <variation key="heightClass=compact"> <mask key="constraints"> <include reference="d0H-kE-IWx"/> </mask> </variation> <variation key="heightClass=regular"> <mask key="constraints"> <include reference="t9j-kf-yze"/> </mask> </variation> </stackView> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="75k-vD-FSR" userLabel="Separator"> <rect key="frame" x="0.0" y="164" width="340" height="1"/> <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.12" colorSpace="custom" customColorSpace="sRGB"/> <constraints> <constraint firstAttribute="height" constant="1" id="olJ-Rf-VTO"/> </constraints> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="string" keyPath="styleName" value="Divider"/> </userDefinedRuntimeAttributes> </view> </subviews> <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <constraints> <constraint firstItem="W1i-v6-zbz" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="6Tm-PS-VWZ"/> <constraint firstItem="sRd-zd-xSl" firstAttribute="centerX" secondItem="W1i-v6-zbz" secondAttribute="centerX" id="7AE-Qf-1L3"/> <constraint firstAttribute="trailing" secondItem="W1i-v6-zbz" secondAttribute="trailing" id="7ka-f7-sqc"/> <constraint firstItem="sRd-zd-xSl" firstAttribute="top" secondItem="W1i-v6-zbz" secondAttribute="bottom" constant="8" id="PTe-W7-QnR"/> <constraint firstItem="W1i-v6-zbz" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="RLh-Jr-7dm"/> <constraint firstAttribute="trailing" secondItem="sRd-zd-xSl" secondAttribute="trailing" priority="750" constant="16" id="Z8f-X6-r4N"/> <constraint firstItem="sRd-zd-xSl" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" priority="750" constant="16" id="hJE-fg-IEX"/> <constraint firstAttribute="bottom" secondItem="sRd-zd-xSl" secondAttribute="bottom" constant="26" id="iwo-vC-EI9"/> </constraints> </tableViewCellContentView> <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <constraints> <constraint firstItem="75k-vD-FSR" firstAttribute="trailing" secondItem="njF-e1-oar" secondAttribute="trailing" id="6Po-s2-mvn"/> <constraint firstItem="njF-e1-oar" firstAttribute="bottom" secondItem="75k-vD-FSR" secondAttribute="bottom" id="mtK-Ba-kQj"/> <constraint firstItem="njF-e1-oar" firstAttribute="leading" secondItem="75k-vD-FSR" secondAttribute="leading" id="nhe-Sa-Mlo"/> </constraints> <viewLayoutGuide key="safeArea" id="njF-e1-oar"/> <connections> <outlet property="guidesButton" destination="PoD-TJ-E1s" id="azk-HY-F5J"/> <outlet property="isoLinesButton" destination="edA-Mo-3Vx" id="qoC-8w-EqY"/> <outlet property="subwayButton" destination="4US-fZ-cyg" id="eQB-HR-Wgl"/> <outlet property="trafficButton" destination="X9u-oF-oz8" id="rd3-S2-col"/> </connections> <point key="canvasLocation" x="137.6953125" y="201.953125"/> </tableViewCell> </objects> <resources> <image name="btn_menu_guides" width="50" height="50"/> <image name="btn_menu_isomaps" width="50" height="50"/> <image name="btn_menu_subway" width="50" height="50"/> <image name="btn_menu_traffic" width="50" height="50"/> <image name="ic_clear_24" width="20" height="20"/> </resources> </document>