移除多余的视图

This commit is contained in:
ylzheng
2015-11-09 22:44:49 +08:00
parent 68a4949d68
commit e847de9b9d
3 changed files with 35 additions and 236 deletions
+1 -7
View File
@@ -21,7 +21,7 @@
<rect key="frame" x="182" y="268" width="117" height="20.5"/>
<animations/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.39215686274509803" green="0.60392156862745094" blue="0.89803921568627454" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.21804744009999999" green="0.71221572160000002" blue="0.63985896109999996" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Logo_Max" translatesAutoresizingMaskIntoConstraints="NO" id="RtZ-im-oKy">
@@ -31,9 +31,6 @@
<constraint firstAttribute="height" constant="120" id="oVN-Kj-Jif"/>
</constraints>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Museum" translatesAutoresizingMaskIntoConstraints="NO" id="Pfe-bD-4AS">
<rect key="frame" x="190" y="340" width="100" height="100"/>
</imageView>
</subviews>
<animations/>
<color key="backgroundColor" red="0.96862745098039216" green="0.97647058823529409" blue="0.96078431372549022" alpha="1" colorSpace="calibratedRGB"/>
@@ -43,8 +40,6 @@
<constraint firstItem="RtZ-im-oKy" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="Ss0-1Y-pFH"/>
<constraint firstAttribute="centerX" secondItem="cgV-aw-VSc" secondAttribute="centerX" id="UNp-cD-yeN"/>
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Wue-ko-Jak"/>
<constraint firstItem="Pfe-bD-4AS" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="jiZ-lH-BSi"/>
<constraint firstItem="8ie-xW-0ye" firstAttribute="top" secondItem="Pfe-bD-4AS" secondAttribute="bottom" constant="6" id="oFo-mG-kDh"/>
<constraint firstItem="RtZ-im-oKy" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="120" id="opU-IP-klh"/>
</constraints>
<nil key="simulatedStatusBarMetrics"/>
@@ -54,6 +49,5 @@
</objects>
<resources>
<image name="Logo_Max" width="200" height="200"/>
<image name="Museum" width="100" height="100"/>
</resources>
</document>
+30 -229
View File
@@ -7,144 +7,6 @@
<capability name="Navigation items with more than one left or right bar item" minToolsVersion="7.0"/>
</dependencies>
<scenes>
<!--主菜单-->
<scene sceneID="lBD-0o-b2O">
<objects>
<tableViewController storyboardIdentifier="LeftMenuViewController" title="主菜单" id="jzM-ph-gtc" customClass="MenuTableViewController" customModule="librx" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="static" style="plain" separatorStyle="none" rowHeight="60" sectionHeaderHeight="22" sectionFooterHeight="22" id="dJl-Ut-Hpf">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<animations/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<color key="sectionIndexBackgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<sections>
<tableViewSection id="Hxt-Nw-pC4">
<cells>
<tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" rowHeight="60" id="6XR-vT-fW1">
<rect key="frame" x="0.0" y="0.0" width="600" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="6XR-vT-fW1" id="fP7-VW-YOa">
<rect key="frame" x="0.0" y="0.0" width="600" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<animations/>
</tableViewCellContentView>
<animations/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</tableViewCell>
<tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" rowHeight="60" id="XAc-dc-LTf">
<rect key="frame" x="0.0" y="60" width="600" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="XAc-dc-LTf" id="ggI-IW-mG3">
<rect key="frame" x="0.0" y="0.0" width="600" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<animations/>
</tableViewCellContentView>
<animations/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</tableViewCell>
<tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" id="KPO-T6-dnw">
<rect key="frame" x="0.0" y="120" width="600" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KPO-T6-dnw" id="EZC-d8-IxL">
<rect key="frame" x="0.0" y="0.0" width="600" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="cbE-Rm-oIX">
<rect key="frame" x="60" y="15" width="30" height="30"/>
<animations/>
<state key="normal" title="书签">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
</button>
</subviews>
<animations/>
</tableViewCellContentView>
<animations/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</tableViewCell>
<tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" id="cGo-tz-r3m">
<rect key="frame" x="0.0" y="180" width="600" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="cGo-tz-r3m" id="JkF-Fo-dfk">
<rect key="frame" x="0.0" y="0.0" width="600" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="25b-gZ-7Eg">
<rect key="frame" x="62" y="15" width="30" height="30"/>
<animations/>
<state key="normal" title="收藏">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
</button>
</subviews>
<animations/>
</tableViewCellContentView>
<animations/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</tableViewCell>
<tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" id="mZB-wH-Gq5">
<rect key="frame" x="0.0" y="240" width="600" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="mZB-wH-Gq5" id="o2m-4O-xjO">
<rect key="frame" x="0.0" y="0.0" width="600" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Msj-60-QQl">
<rect key="frame" x="63" y="15" width="30" height="30"/>
<animations/>
<state key="normal" title="设置">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
</button>
</subviews>
<animations/>
</tableViewCellContentView>
<animations/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</tableViewCell>
<tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" id="vlu-1K-19Z">
<rect key="frame" x="0.0" y="300" width="600" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="vlu-1K-19Z" id="yVz-PI-mL0">
<rect key="frame" x="0.0" y="0.0" width="600" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="UXh-Ix-aq1">
<rect key="frame" x="66" y="15" width="30" height="30"/>
<animations/>
<state key="normal" title="登陆">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="loginMenuPressed:" destination="jzM-ph-gtc" eventType="touchUpInside" id="y3m-D5-4VH"/>
</connections>
</button>
</subviews>
<animations/>
</tableViewCellContentView>
<animations/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</tableViewCell>
</cells>
</tableViewSection>
</sections>
<connections>
<outlet property="dataSource" destination="jzM-ph-gtc" id="xUk-oC-KaF"/>
<outlet property="delegate" destination="jzM-ph-gtc" id="30P-Ct-Ju1"/>
</connections>
</tableView>
<connections>
<outlet property="loginButton" destination="UXh-Ix-aq1" id="NPI-Wu-fY2"/>
</connections>
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Dln-HB-Sxz" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-4210" y="1674"/>
</scene>
<!--个人中心-->
<scene sceneID="A4Z-AK-Yy0">
<objects>
@@ -287,6 +149,13 @@
<action selector="toggleFollowUser:" destination="rvR-19-yLR" eventType="touchUpInside" id="RzK-wa-lFX"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="c2y-eJ-dkW">
<rect key="frame" x="557" y="29" width="25" height="25"/>
<state key="normal" image="Settings"/>
<connections>
<segue destination="htY-qM-p3Y" kind="show" id="CG7-Sl-3xn"/>
</connections>
</button>
</subviews>
<animations/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
@@ -324,6 +193,7 @@
<constraint firstItem="bPm-kp-unG" firstAttribute="centerY" secondItem="rID-rz-Ikg" secondAttribute="centerY" id="S7B-cO-XXp"/>
<constraint firstItem="dd1-LB-NAs" firstAttribute="top" secondItem="bIG-eJ-I2C" secondAttribute="top" id="TU8-SB-OX5"/>
<constraint firstItem="SIX-Qg-kL0" firstAttribute="leading" secondItem="yIh-xg-eKG" secondAttribute="leading" id="UPE-bI-ir4"/>
<constraint firstItem="yIh-xg-eKG" firstAttribute="top" secondItem="c2y-eJ-dkW" secondAttribute="bottom" constant="-54" id="WX8-Bf-Q9t"/>
<constraint firstItem="bPm-kp-unG" firstAttribute="leading" secondItem="rID-rz-Ikg" secondAttribute="leading" constant="15" id="WbN-st-6HW"/>
<constraint firstItem="x2Y-ZI-8hQ" firstAttribute="leading" secondItem="zAW-lF-yk5" secondAttribute="trailing" constant="12" id="ZAr-BQ-eq9"/>
<constraint firstItem="XGc-Dl-Wje" firstAttribute="top" secondItem="vXj-aq-evk" secondAttribute="bottom" constant="15" id="a7O-cr-fyT"/>
@@ -331,6 +201,7 @@
<constraint firstItem="x2Y-ZI-8hQ" firstAttribute="bottom" secondItem="bIG-eJ-I2C" secondAttribute="bottom" id="bEJ-rM-Uqg"/>
<constraint firstItem="Pb5-rZ-PRn" firstAttribute="bottom" secondItem="bIG-eJ-I2C" secondAttribute="bottom" id="cdM-8M-16j"/>
<constraint firstItem="XGc-Dl-Wje" firstAttribute="top" secondItem="bPm-kp-unG" secondAttribute="bottom" constant="73" id="dU1-mX-4gK"/>
<constraint firstItem="c2y-eJ-dkW" firstAttribute="leading" secondItem="yIh-xg-eKG" secondAttribute="trailing" constant="-43" id="dfA-EJ-kOb"/>
<constraint firstItem="SIX-Qg-kL0" firstAttribute="width" secondItem="XGc-Dl-Wje" secondAttribute="width" constant="30" id="eIu-XL-sAz"/>
<constraint firstAttribute="trailing" secondItem="yIh-xg-eKG" secondAttribute="trailing" id="fAq-oH-fX3"/>
<constraint firstItem="bPm-kp-unG" firstAttribute="centerX" secondItem="rID-rz-Ikg" secondAttribute="centerX" id="fMg-sZ-bAw"/>
@@ -406,18 +277,17 @@
</mask>
</variation>
</view>
<tabBarItem key="tabBarItem" title="个人中心" image="UserMale" id="q3u-i6-AFn"/>
<navigationItem key="navigationItem" title="个人中心" id="aqp-9i-WAE">
<barButtonItem key="backBarButtonItem" title="返回" id="z0q-eR-feQ"/>
<rightBarButtonItems>
<barButtonItem image="Settings" id="8hk-iR-75v">
<color key="tintColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<connections>
<segue destination="htY-qM-p3Y" kind="show" id="lF7-oe-7dl"/>
</connections>
</barButtonItem>
<barButtonItem id="ShJ-Vd-gEK"/>
</rightBarButtonItems>
</navigationItem>
<nil key="simulatedTopBarMetrics"/>
<connections>
<outlet property="avatarImageView" destination="bPm-kp-unG" id="LZZ-jw-LdZ"/>
<outlet property="contentView" destination="9w4-mx-yar" id="uLQ-oY-F8X"/>
@@ -425,12 +295,13 @@
<outlet property="followButton" destination="CNw-ot-yn7" id="4wK-jI-9UI"/>
<outlet property="followerNumLabel" destination="dd1-LB-NAs" id="5be-gA-lvL"/>
<outlet property="nameLabel" destination="yp4-E4-vOS" id="6nz-6L-ch6"/>
<outlet property="settingButton" destination="c2y-eJ-dkW" id="10q-RT-aEt"/>
<outlet property="subTitleLabel" destination="vXj-aq-evk" id="M6L-tZ-JY7"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="JVC-mx-K4x" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-5565" y="4242"/>
<point key="canvasLocation" x="-6249" y="4006"/>
</scene>
<!--设置-->
<scene sceneID="zAh-M0-FUl">
@@ -557,7 +428,7 @@
<pageViewController autoresizesArchivedViewToFullSize="NO" transitionStyle="pageCurl" navigationOrientation="horizontal" spineLocation="min" id="w7v-wp-S5s" customClass="ContainerViewController" customModule="librx" customModuleProvider="target" sceneMemberID="viewController"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="TJH-1V-qao" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-4741" y="4948.5"/>
<point key="canvasLocation" x="-6409" y="5299.5"/>
</scene>
<!--GraphsUI View Controller-->
<scene sceneID="Rkh-y5-tfm">
@@ -665,7 +536,7 @@
<placeholder placeholderIdentifier="IBFirstResponder" id="Nbs-Ez-3W6" userLabel="First Responder" sceneMemberID="firstResponder"/>
<exit id="fOv-cv-vaY" userLabel="Exit" sceneMemberID="exit"/>
</objects>
<point key="canvasLocation" x="-6727" y="5573"/>
<point key="canvasLocation" x="-8303" y="4349"/>
</scene>
<!--关于-->
<scene sceneID="36s-Am-woF">
@@ -729,7 +600,7 @@
<color key="sectionIndexBackgroundColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<prototypes>
<tableViewCell contentMode="scaleToFill" restorationIdentifier="Cell" selectionStyle="none" indentationWidth="10" reuseIdentifier="Cell" rowHeight="140" id="APH-r0-l37" customClass="CustomTableCell" customModule="librx">
<rect key="frame" x="0.0" y="65" width="600" height="140"/>
<rect key="frame" x="0.0" y="1" width="600" height="140"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="APH-r0-l37" id="OHj-QX-4Gg">
<rect key="frame" x="0.0" y="0.0" width="600" height="139.5"/>
@@ -943,7 +814,7 @@
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="wQd-t8-Eyc" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-7757" y="5055"/>
<point key="canvasLocation" x="-8965" y="5359"/>
</scene>
<!--探索发现-->
<scene sceneID="Krh-MH-97G">
@@ -1030,7 +901,7 @@
</connections>
</searchDisplayController>
</objects>
<point key="canvasLocation" x="-7072" y="4218"/>
<point key="canvasLocation" x="-8496" y="3554"/>
</scene>
<!--Explore Table View Controller-->
<scene sceneID="tWf-P5-Agy">
@@ -1128,37 +999,7 @@
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="sSB-Un-hxK" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-6330" y="4234"/>
</scene>
<!--首页Navigation-->
<scene sceneID="w2o-3B-jX7">
<objects>
<navigationController storyboardIdentifier="NavigationStoriesTableViewController" title="首页Navigation" automaticallyAdjustsScrollViewInsets="NO" modalTransitionStyle="crossDissolve" id="9YB-h9-56i" sceneMemberID="viewController">
<tabBarItem key="tabBarItem" title="信息流" image="Home" id="ryG-68-tYE"/>
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="wKr-iH-tOr">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<animations/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="barTintColor" red="0.21804744005203247" green="0.71221572160720825" blue="0.63985896110534668" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<textAttributes key="titleTextAttributes">
<fontDescription key="fontDescription" name="AvenirNext-Medium" family="Avenir Next" pointSize="20"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</textAttributes>
</navigationBar>
<nil name="viewControllers"/>
<toolbar key="toolbar" opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="J6a-iv-nXk">
<autoresizingMask key="autoresizingMask"/>
<animations/>
</toolbar>
<connections>
<segue destination="mC3-dS-U94" kind="relationship" relationship="rootViewController" id="gGW-CX-8nF"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Y3l-fn-gfq" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-8557" y="5062"/>
<point key="canvasLocation" x="-7530" y="3482"/>
</scene>
<!--登陆-->
<scene sceneID="l9E-kx-aOp">
@@ -1341,7 +1182,7 @@
<placeholder placeholderIdentifier="IBFirstResponder" id="GRL-em-kwd" userLabel="First Responder" sceneMemberID="firstResponder"/>
<exit id="GHF-5j-X2W" userLabel="Exit" sceneMemberID="exit"/>
</objects>
<point key="canvasLocation" x="-3903" y="5044"/>
<point key="canvasLocation" x="-4727" y="5324"/>
</scene>
<!--注册-->
<scene sceneID="TWu-Fa-urh">
@@ -1448,7 +1289,7 @@
<placeholder placeholderIdentifier="IBFirstResponder" id="kXj-0k-afy" userLabel="First Responder" sceneMemberID="firstResponder"/>
<exit id="f8E-VA-Fy3" userLabel="Exit" sceneMemberID="exit"/>
</objects>
<point key="canvasLocation" x="-3101" y="5044"/>
<point key="canvasLocation" x="-3733" y="5364"/>
</scene>
<!--创建分享-->
<scene sceneID="pp1-zy-mbC">
@@ -1647,7 +1488,7 @@
<placeholder placeholderIdentifier="IBFirstResponder" id="AqQ-Dh-ZhX" userLabel="First Responder" sceneMemberID="firstResponder"/>
<exit id="Xtx-C6-7SX" userLabel="Exit" sceneMemberID="exit"/>
</objects>
<point key="canvasLocation" x="-3573" y="3452"/>
<point key="canvasLocation" x="-4405" y="2948"/>
</scene>
<!--反馈建议-->
<scene sceneID="aiq-XZ-RKp">
@@ -1682,25 +1523,6 @@
</objects>
<point key="canvasLocation" x="-2967" y="4342"/>
</scene>
<!--Root View Controller-->
<scene sceneID="L2G-Wp-OBa">
<objects>
<viewController id="Q9y-iX-B8K" customClass="RootViewController" customModule="librx" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="XXK-vU-zVZ"/>
<viewControllerLayoutGuide type="bottom" id="uSu-Sk-qEu"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Vb5-ah-jHl">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<animations/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="gWH-Uq-2dG" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-5074" y="1647"/>
</scene>
<!--标签页-->
<scene sceneID="Lgs-sK-2PE">
<objects>
@@ -1729,28 +1551,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="hE5-iE-GXN" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-8029" y="4207"/>
</scene>
<!--个人中心Naviation-->
<scene sceneID="ZOG-ra-w4p">
<objects>
<navigationController title="个人中心Naviation" automaticallyAdjustsScrollViewInsets="NO" id="hqF-xg-lLW" sceneMemberID="viewController">
<tabBarItem key="tabBarItem" title="个人中心" image="UserMale" id="6pj-xn-s9b"/>
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="2w6-0H-Fnj">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<animations/>
<color key="barTintColor" red="0.21804744009999999" green="0.71221572160000002" blue="0.63985896109999996" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</navigationBar>
<nil name="viewControllers"/>
<connections>
<segue destination="rvR-19-yLR" kind="relationship" relationship="rootViewController" id="bKV-Tl-jmb"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="euU-pe-QKk" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-5621" y="3452"/>
<point key="canvasLocation" x="-9437" y="3543"/>
</scene>
<!--创建分享Navigation-->
<scene sceneID="Jok-fj-VIe">
@@ -1774,7 +1575,7 @@
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="wjw-ne-XhP" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-4443" y="3452"/>
<point key="canvasLocation" x="-5437" y="2942"/>
</scene>
<!--探索发现Navigation-->
<scene sceneID="8S3-c2-nPj">
@@ -1795,7 +1596,7 @@
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Jer-CY-d1n" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-6395" y="3424"/>
<point key="canvasLocation" x="-8523" y="2742"/>
</scene>
<!--标签页导航-->
<scene sceneID="cgQ-5n-ypA">
@@ -1816,7 +1617,7 @@
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="toX-P4-KFc" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-7153" y="3414"/>
<point key="canvasLocation" x="-9401" y="2694"/>
</scene>
<!--Tabbar容器视图-->
<scene sceneID="k6q-dx-Ai5">
@@ -1832,12 +1633,12 @@
<connections>
<segue destination="14E-ax-SBd" kind="relationship" relationship="viewControllers" id="y9F-VK-hof"/>
<segue destination="kGC-kZ-tME" kind="relationship" relationship="viewControllers" id="JaU-19-fNj"/>
<segue destination="hqF-xg-lLW" kind="relationship" relationship="viewControllers" id="6DC-Eg-KOL"/>
<segue destination="rvR-19-yLR" kind="relationship" relationship="viewControllers" id="I0Y-8O-UgT"/>
</connections>
</tabBarController>
<placeholder placeholderIdentifier="IBFirstResponder" id="aWg-nZ-Etr" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-6402" y="2276"/>
<point key="canvasLocation" x="-7362" y="1972"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="N3c-IM-8gk">
@@ -1857,7 +1658,7 @@
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="1WU-Fk-5MF" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-4733" y="4257"/>
<point key="canvasLocation" x="-4840" y="4254"/>
</scene>
</scenes>
<resources>
@@ -1880,7 +1681,7 @@
<image name="default" width="62" height="62"/>
</resources>
<inferredMetricsTieBreakers>
<segue reference="bKV-Tl-jmb"/>
<segue reference="a1A-OB-cPM"/>
<segue reference="fgr-G1-uqB"/>
</inferredMetricsTieBreakers>
</document>
+4
View File
@@ -17,6 +17,8 @@ class ProfileViewController: UIViewController{
@IBOutlet weak var avatarImageView: UIImageView!
@IBOutlet weak var contentView: UIView!
@IBOutlet weak var followButton: UIButton!
@IBOutlet weak var settingButton: UIButton!
private var containerViewController: ContainerViewController!
private var screenSize: CGRect!
@@ -64,8 +66,10 @@ class ProfileViewController: UIViewController{
if self.isMe {
self.followButton.hidden = true
loadMeProfile()
self.settingButton.hidden = false
} else{
loadUserProfile(userId!)
self.settingButton.hidden = true
}
}