ソースを参照

- 멤버 메뉴, Foother 추가

TaeHyun 8 年 前
コミット
c63e964131

+ 105 - 2
OneCable/Base.lproj/HomeMember.storyboard

@@ -268,7 +268,7 @@
                                         <collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="0.0" minimumInteritemSpacing="0.0" id="Eqr-ob-qGR">
                                             <size key="itemSize" width="145" height="188"/>
                                             <size key="headerReferenceSize" width="0.0" height="0.0"/>
-                                            <size key="footerReferenceSize" width="0.0" height="0.0"/>
+                                            <size key="footerReferenceSize" width="50" height="153"/>
                                             <inset key="sectionInset" minX="0.0" minY="10" maxX="0.0" maxY="0.0"/>
                                         </collectionViewFlowLayout>
                                         <cells>
@@ -556,10 +556,113 @@
                                                 <size key="customSize" width="145" height="188"/>
                                                 <connections>
                                                     <outlet property="btnAdd" destination="PxQ-Df-kgL" id="qLV-cj-Xmq"/>
-                                                    <outlet property="lblMemInvite" destination="yLG-eY-ndH" id="aDs-pv-SwN"/>
                                                 </connections>
                                             </collectionViewCell>
                                         </cells>
+                                        <collectionReusableView key="sectionFooterView" hidden="YES" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="FooterCollectionCellIdentifier" id="ExW-xk-emq" customClass="HomeMemberCollectionFooterView">
+                                            <rect key="frame" x="0.0" y="198" width="300" height="153"/>
+                                            <autoresizingMask key="autoresizingMask"/>
+                                            <subviews>
+                                                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nmJ-WP-JNT" userLabel="View - Container">
+                                                    <rect key="frame" x="0.0" y="0.0" width="300" height="153"/>
+                                                    <subviews>
+                                                        <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="list_add_bg" translatesAutoresizingMaskIntoConstraints="NO" id="2Pa-6c-7q5">
+                                                            <rect key="frame" x="0.0" y="0.0" width="300" height="153"/>
+                                                            <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+                                                        </imageView>
+                                                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Urf-ey-gwq" customClass="CustomLabelButton">
+                                                            <rect key="frame" x="15" y="0.0" width="270" height="153"/>
+                                                            <subviews>
+                                                                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Okt-84-LiN">
+                                                                    <rect key="frame" x="0.0" y="98.5" width="270" height="10"/>
+                                                                    <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+                                                                    <constraints>
+                                                                        <constraint firstAttribute="height" constant="10" id="PFp-7J-3fB"/>
+                                                                    </constraints>
+                                                                </view>
+                                                                <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="VaL-QV-KBy" customClass="CustomButton">
+                                                                    <rect key="frame" x="113.5" y="54.5" width="44" height="44"/>
+                                                                    <constraints>
+                                                                        <constraint firstAttribute="height" constant="44" id="2Mp-tR-ZMy"/>
+                                                                        <constraint firstAttribute="width" constant="44" id="DHX-TD-Uyb"/>
+                                                                    </constraints>
+                                                                    <state key="normal" backgroundImage="common_list_btn_big_add"/>
+                                                                    <state key="highlighted" backgroundImage="common_list_btn_big_add_press"/>
+                                                                </button>
+                                                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="252" verticalCompressionResistancePriority="749" text="멤버 초대" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="u8k-iS-SxS" customClass="CustomLabel">
+                                                                    <rect key="frame" x="0.0" y="108.5" width="270" height="20"/>
+                                                                    <constraints>
+                                                                        <constraint firstAttribute="height" constant="20" id="XVy-j1-0wl"/>
+                                                                    </constraints>
+                                                                    <fontDescription key="fontDescription" type="system" pointSize="16"/>
+                                                                    <nil key="highlightedColor"/>
+                                                                    <userDefinedRuntimeAttributes>
+                                                                        <userDefinedRuntimeAttribute type="color" keyPath="highlightedTextColor">
+                                                                            <color key="value" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
+                                                                        </userDefinedRuntimeAttribute>
+                                                                    </userDefinedRuntimeAttributes>
+                                                                </label>
+                                                            </subviews>
+                                                            <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+                                                            <constraints>
+                                                                <constraint firstItem="VaL-QV-KBy" firstAttribute="centerY" secondItem="Urf-ey-gwq" secondAttribute="centerY" id="3rP-nm-BMo"/>
+                                                                <constraint firstItem="Okt-84-LiN" firstAttribute="top" secondItem="VaL-QV-KBy" secondAttribute="bottom" id="FbZ-e1-tyS"/>
+                                                                <constraint firstItem="VaL-QV-KBy" firstAttribute="centerX" secondItem="Urf-ey-gwq" secondAttribute="centerX" id="HPE-HR-g0a"/>
+                                                                <constraint firstAttribute="trailing" secondItem="Okt-84-LiN" secondAttribute="trailing" id="LX9-nh-UzP"/>
+                                                                <constraint firstItem="Okt-84-LiN" firstAttribute="leading" secondItem="Urf-ey-gwq" secondAttribute="leading" id="QKM-lv-gfW"/>
+                                                                <constraint firstItem="u8k-iS-SxS" firstAttribute="leading" secondItem="Urf-ey-gwq" secondAttribute="leading" id="eXe-4T-Q1Y"/>
+                                                                <constraint firstAttribute="trailing" secondItem="u8k-iS-SxS" secondAttribute="trailing" id="voP-IR-Hrs"/>
+                                                                <constraint firstItem="u8k-iS-SxS" firstAttribute="top" secondItem="Okt-84-LiN" secondAttribute="bottom" id="ysG-8r-7rb"/>
+                                                            </constraints>
+                                                            <connections>
+                                                                <outlet property="btn" destination="VaL-QV-KBy" id="KpJ-uy-bu8"/>
+                                                                <outlet property="label" destination="u8k-iS-SxS" id="znN-nd-vsq"/>
+                                                            </connections>
+                                                        </view>
+                                                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7XC-5k-KKd">
+                                                            <rect key="frame" x="285" y="0.0" width="15" height="153"/>
+                                                            <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+                                                            <constraints>
+                                                                <constraint firstAttribute="width" constant="15" id="JRR-DX-EQD"/>
+                                                            </constraints>
+                                                        </view>
+                                                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="CDZ-FC-n2X">
+                                                            <rect key="frame" x="0.0" y="0.0" width="15" height="153"/>
+                                                            <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+                                                            <constraints>
+                                                                <constraint firstAttribute="width" constant="15" id="ZI4-oW-ZwU"/>
+                                                            </constraints>
+                                                        </view>
+                                                    </subviews>
+                                                    <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+                                                    <constraints>
+                                                        <constraint firstItem="2Pa-6c-7q5" firstAttribute="leading" secondItem="nmJ-WP-JNT" secondAttribute="leading" id="2jC-CH-l7U"/>
+                                                        <constraint firstItem="Urf-ey-gwq" firstAttribute="leading" secondItem="CDZ-FC-n2X" secondAttribute="trailing" id="4zh-tK-YbA"/>
+                                                        <constraint firstItem="CDZ-FC-n2X" firstAttribute="leading" secondItem="nmJ-WP-JNT" secondAttribute="leading" id="8qs-nd-Vsg"/>
+                                                        <constraint firstItem="7XC-5k-KKd" firstAttribute="leading" secondItem="Urf-ey-gwq" secondAttribute="trailing" id="Cei-AQ-Rjn"/>
+                                                        <constraint firstItem="Urf-ey-gwq" firstAttribute="top" secondItem="nmJ-WP-JNT" secondAttribute="top" id="RUS-85-kY8"/>
+                                                        <constraint firstItem="7XC-5k-KKd" firstAttribute="top" secondItem="nmJ-WP-JNT" secondAttribute="top" id="TCh-79-FsJ"/>
+                                                        <constraint firstAttribute="bottom" secondItem="Urf-ey-gwq" secondAttribute="bottom" id="YzT-b0-Hfp"/>
+                                                        <constraint firstItem="CDZ-FC-n2X" firstAttribute="top" secondItem="nmJ-WP-JNT" secondAttribute="top" id="c39-AI-eE6"/>
+                                                        <constraint firstAttribute="bottom" secondItem="2Pa-6c-7q5" secondAttribute="bottom" id="c9N-3t-Bre"/>
+                                                        <constraint firstAttribute="bottom" secondItem="CDZ-FC-n2X" secondAttribute="bottom" id="dCk-m2-hd6"/>
+                                                        <constraint firstAttribute="trailing" secondItem="7XC-5k-KKd" secondAttribute="trailing" id="glJ-s2-Wgd"/>
+                                                        <constraint firstAttribute="trailing" secondItem="2Pa-6c-7q5" secondAttribute="trailing" id="klR-I6-cnG"/>
+                                                        <constraint firstAttribute="bottom" secondItem="7XC-5k-KKd" secondAttribute="bottom" id="rwr-lp-LGG"/>
+                                                        <constraint firstItem="2Pa-6c-7q5" firstAttribute="top" secondItem="nmJ-WP-JNT" secondAttribute="top" id="vcF-xh-0sJ"/>
+                                                    </constraints>
+                                                </view>
+                                            </subviews>
+                                            <constraints>
+                                                <constraint firstAttribute="trailing" secondItem="nmJ-WP-JNT" secondAttribute="trailing" id="36g-cZ-C09"/>
+                                                <constraint firstItem="nmJ-WP-JNT" firstAttribute="top" secondItem="ExW-xk-emq" secondAttribute="top" id="60G-eS-pK9"/>
+                                                <constraint firstItem="nmJ-WP-JNT" firstAttribute="leading" secondItem="ExW-xk-emq" secondAttribute="leading" id="oaZ-po-DSI"/>
+                                                <constraint firstAttribute="bottom" secondItem="nmJ-WP-JNT" secondAttribute="bottom" id="z0k-PL-wKw"/>
+                                            </constraints>
+                                            <connections>
+                                                <outlet property="btnAdd" destination="Urf-ey-gwq" id="eUJ-bp-wnY"/>
+                                            </connections>
+                                        </collectionReusableView>
                                     </collectionView>
                                     <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="249" verticalCompressionResistancePriority="749" image="shadow_top" translatesAutoresizingMaskIntoConstraints="NO" id="ArZ-VY-Axf">
                                         <rect key="frame" x="0.0" y="70" width="320" height="6"/>

+ 6 - 6
OneCable/Classes/ViewControllers/HomeMemberScreens/HomeMemberViewController.h

@@ -73,9 +73,9 @@
 
 @end
 
-//@interface HomeMemberCollectionFooterView : UICollectionReusableView
-//
-//@property (weak, nonatomic) IBOutlet CustomLabelButton *btnAdd;
-//@property (weak, nonatomic) IBOutlet CustomLabel *lblSingleMemInvite;
-//
-//@end
+@interface HomeMemberCollectionFooterView : UICollectionReusableView
+
+@property (weak, nonatomic) IBOutlet CustomLabelButton *btnAdd;
+@property (weak, nonatomic) IBOutlet CustomLabel *lblSingleMemInvite;
+
+@end