Selaa lähdekoodia

AddToPlaylistView: Place new playlist button below collectionView

Soomin Lee 6 vuotta sitten
vanhempi
commit
951b2828b9
1 muutettua tiedostoa jossa 20 lisäystä ja 19 poistoa
  1. 20 19
      Resources/Xib/AddToPlaylist/AddToPlaylistView.xib

+ 20 - 19
Resources/Xib/AddToPlaylist/AddToPlaylistView.xib

@@ -22,40 +22,41 @@
             <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
             <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
             <subviews>
+                <collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" dataMode="none" translatesAutoresizingMaskIntoConstraints="NO" id="Ozj-oC-7Dg">
+                    <rect key="frame" x="0.0" y="54" width="414" height="758"/>
+                    <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
+                    <collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="o3C-iH-Udd">
+                        <size key="itemSize" width="50" height="50"/>
+                        <size key="headerReferenceSize" width="0.0" height="0.0"/>
+                        <size key="footerReferenceSize" width="0.0" height="0.0"/>
+                        <inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
+                    </collectionViewFlowLayout>
+                </collectionView>
                 <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="A6v-5Z-MTf">
-                    <rect key="frame" x="137" y="59" width="140" height="40"/>
-                    <color key="backgroundColor" red="1" green="0.53333333329999999" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
+                    <rect key="frame" x="57" y="822" width="300" height="40"/>
+                    <color key="backgroundColor" red="0.96470588235294119" green="0.49803921568627452" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="40" id="TSH-AI-tWF"/>
-                        <constraint firstAttribute="width" constant="140" id="yiR-DN-Qy2"/>
+                        <constraint firstAttribute="width" constant="300" id="yiR-DN-Qy2"/>
                     </constraints>
+                    <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="15"/>
                     <color key="tintColor" red="0.59460381650000005" green="0.83921135540000003" blue="0.31552115819999998" alpha="1" colorSpace="calibratedRGB"/>
-                    <state key="normal" title="New Playlist">
+                    <state key="normal" title="Default">
                         <color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                     </state>
                     <connections>
                         <action selector="handleNewPlaylist:" destination="-1" eventType="touchUpInside" id="Yss-xO-E0U"/>
                     </connections>
                 </button>
-                <collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" dataMode="none" translatesAutoresizingMaskIntoConstraints="NO" id="Ozj-oC-7Dg">
-                    <rect key="frame" x="0.0" y="114" width="414" height="782"/>
-                    <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-                    <collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="o3C-iH-Udd">
-                        <size key="itemSize" width="50" height="50"/>
-                        <size key="headerReferenceSize" width="0.0" height="0.0"/>
-                        <size key="footerReferenceSize" width="0.0" height="0.0"/>
-                        <inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
-                    </collectionViewFlowLayout>
-                </collectionView>
             </subviews>
             <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
             <constraints>
-                <constraint firstItem="Ozj-oC-7Dg" firstAttribute="top" secondItem="A6v-5Z-MTf" secondAttribute="bottom" constant="15" id="1dq-rp-afA"/>
-                <constraint firstItem="Ozj-oC-7Dg" firstAttribute="leading" secondItem="SK5-46-lSh" secondAttribute="leading" id="23e-in-C0h"/>
+                <constraint firstItem="Ozj-oC-7Dg" firstAttribute="top" secondItem="SK5-46-lSh" secondAttribute="top" constant="10" id="8uz-If-6Ys"/>
                 <constraint firstItem="A6v-5Z-MTf" firstAttribute="centerX" secondItem="SK5-46-lSh" secondAttribute="centerX" id="9K9-Ci-hVU"/>
-                <constraint firstAttribute="bottom" secondItem="Ozj-oC-7Dg" secondAttribute="bottom" id="GPT-DA-XyU"/>
-                <constraint firstItem="Ozj-oC-7Dg" firstAttribute="trailing" secondItem="SK5-46-lSh" secondAttribute="trailing" id="Iyu-57-LOq"/>
-                <constraint firstItem="A6v-5Z-MTf" firstAttribute="top" secondItem="SK5-46-lSh" secondAttribute="top" constant="15" id="uRg-QQ-pRZ"/>
+                <constraint firstItem="Ozj-oC-7Dg" firstAttribute="leading" secondItem="SK5-46-lSh" secondAttribute="leading" id="dl6-v8-tY0"/>
+                <constraint firstItem="Ozj-oC-7Dg" firstAttribute="trailing" secondItem="SK5-46-lSh" secondAttribute="trailing" id="mCs-Yn-ebq"/>
+                <constraint firstItem="A6v-5Z-MTf" firstAttribute="bottom" secondItem="SK5-46-lSh" secondAttribute="bottom" id="tPj-cf-ZBR"/>
+                <constraint firstItem="A6v-5Z-MTf" firstAttribute="top" secondItem="Ozj-oC-7Dg" secondAttribute="bottom" constant="10" id="zKP-g6-kJG"/>
             </constraints>
             <viewLayoutGuide key="safeArea" id="SK5-46-lSh"/>
             <point key="canvasLocation" x="47.826086956521742" y="35.491071428571423"/>