Sfoglia il codice sorgente

黑名单UI 优化

SuperC 1 anno fa
parent
commit
2f2024fc9e

BIN
MiMoLive/MiMoLive.xcworkspace/xcuserdata/yanxuyao.xcuserdatad/UserInterfaceState.xcuserstate


+ 15 - 1
MiMoLive/MiMoLive/Classes/Mine/Controller/AboutSetUp/MOBlackListVC.m

@@ -14,6 +14,8 @@
 
 @interface MOBlackListVC ()<UITableViewDelegate,UITableViewDataSource>
 
+
+@property (weak, nonatomic) IBOutlet UIImageView *bgImgView;
 @property (weak, nonatomic) IBOutlet UITableView *tableView;
 /** 没有更多的数据视图 */
 @property (nonatomic, strong) MONoMoreDataView *noMoreDataView;
@@ -26,12 +28,19 @@
 
 @implementation MOBlackListVC
 
+- (void)viewWillAppear:(BOOL)animated{
+    [super viewWillAppear:animated];
+    [self.navigationController setNavigationBarHidden:NO animated:animated];
+    
+    [self mo_setNavLeftItemWithImage:[UIImage imageNamed:@"icon_new_left_gray"] andBackgroundImg:[UIImage imageNamed:@"icon_mine_base_bg"]];
+}
+
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view from its nib.
     
     self.navigationItem.title = @"Blacklist";
-    [self setNavLeftItemWithImage:[UIImage imageNamed:@"icon_nav_back"]];
+//    [self setNavLeftItemWithImage:[UIImage imageNamed:@"icon_nav_back"]];
     [self setupUI];
     
     //第一次位空字符串 (代表第一页)
@@ -44,6 +53,11 @@
 }
 
 - (void)setupUI{
+    
+    NSArray *colorArr = @[[MOTools colorWithHexString:@"#EEF2FD" alpha:1.0],[MOTools colorWithHexString:@"#FAFAFC" alpha:1.0]];
+    UIImage *image = [MOTools createGradientRectImageWithBounds:CGRectMake(0, 0, SCREENWIDTH, (SCREENHEIGHT - NAV_BAR_HEIGHT)) Colors:colorArr GradientType:1];
+    [self.bgImgView setImage:image];
+    
     self.tableView.estimatedRowHeight = 0;
     self.tableView.estimatedSectionHeaderHeight = 0;
     self.tableView.estimatedSectionFooterHeight = 0;

+ 9 - 1
MiMoLive/MiMoLive/Classes/Mine/Controller/AboutSetUp/MOBlackListVC.xib

@@ -11,6 +11,7 @@
     <objects>
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MOBlackListVC">
             <connections>
+                <outlet property="bgImgView" destination="epz-HZ-9hb" id="MbJ-j9-mSF"/>
                 <outlet property="tableView" destination="IU5-Px-Tde" id="ah3-pq-A96"/>
                 <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
             </connections>
@@ -20,9 +21,12 @@
             <rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
             <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
             <subviews>
+                <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="epz-HZ-9hb">
+                    <rect key="frame" x="0.0" y="59" width="393" height="793"/>
+                </imageView>
                 <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" style="plain" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="IU5-Px-Tde">
                     <rect key="frame" x="0.0" y="59" width="393" height="793"/>
-                    <color key="backgroundColor" systemColor="systemBackgroundColor"/>
+                    <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                     <connections>
                         <outlet property="dataSource" destination="-1" id="ZoC-MP-vyO"/>
                         <outlet property="delegate" destination="-1" id="j3y-eo-Si6"/>
@@ -32,10 +36,14 @@
             <viewLayoutGuide key="safeArea" id="Q5M-cg-NOt"/>
             <color key="backgroundColor" systemColor="systemBackgroundColor"/>
             <constraints>
+                <constraint firstItem="Q5M-cg-NOt" firstAttribute="trailing" secondItem="epz-HZ-9hb" secondAttribute="trailing" id="CN5-Yz-Rxq"/>
                 <constraint firstAttribute="bottom" secondItem="IU5-Px-Tde" secondAttribute="bottom" id="E2g-pd-Iun"/>
+                <constraint firstItem="epz-HZ-9hb" firstAttribute="top" secondItem="Q5M-cg-NOt" secondAttribute="top" id="J9X-xe-27F"/>
+                <constraint firstItem="epz-HZ-9hb" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="bIC-eX-8Wz"/>
                 <constraint firstItem="IU5-Px-Tde" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="fwh-sw-5eL"/>
                 <constraint firstItem="Q5M-cg-NOt" firstAttribute="trailing" secondItem="IU5-Px-Tde" secondAttribute="trailing" id="mMt-84-7Rj"/>
                 <constraint firstItem="IU5-Px-Tde" firstAttribute="top" secondItem="Q5M-cg-NOt" secondAttribute="top" id="opf-A9-Npe"/>
+                <constraint firstAttribute="bottom" secondItem="epz-HZ-9hb" secondAttribute="bottom" id="yo6-ix-Ena"/>
             </constraints>
             <point key="canvasLocation" x="-10" y="-11"/>
         </view>

+ 6 - 4
MiMoLive/MiMoLive/Classes/Mine/View/MOMineSetUp/MOBlackListBaseCell.m

@@ -15,8 +15,10 @@
     if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
     {
         self.selectionStyle = UITableViewCellSelectionStyleNone;
+        self.backgroundColor = [UIColor clearColor];
         
         _headImg = [UIImageView new];
+        _headImg.contentMode = UIViewContentModeScaleAspectFill;
         [self.contentView addSubview:_headImg];
         [_headImg mas_makeConstraints:^(MASConstraintMaker *make)
         {
@@ -31,7 +33,7 @@
         _nameLab = [UILabel new];
         _nameLab.textColor = UIColorFromHex(0x120817);
         _nameLab.textAlignment = NSTextAlignmentLeft;
-        _nameLab.font = [UIFont systemFontOfSize:14.0];
+        _nameLab.font = [MOTextTools getTheFontWithSize:14.0 AndFontName:@"Akrobat"];
         [self.contentView addSubview:_nameLab];
         [_nameLab mas_makeConstraints:^(MASConstraintMaker *make)
         {
@@ -51,7 +53,7 @@
         _idLab = [UILabel new];
         _idLab.textColor = UIColorFromHex(0x999999);
         _idLab.textAlignment = NSTextAlignmentLeft;
-        _idLab.font = [UIFont systemFontOfSize:12.0];
+        _idLab.font = [MOTextTools getTheFontWithSize:12.0 AndFontName:@"Akrobat"];
         [self.contentView addSubview:_idLab];
         [_idLab mas_makeConstraints:^(MASConstraintMaker *make)
         {
@@ -144,10 +146,10 @@
     if (!_cancelBtn)
     {
         _cancelBtn = [UIButton buttonWithType:UIButtonTypeCustom];
-        _cancelBtn.backgroundColor = [UIColor whiteColor];
+        _cancelBtn.backgroundColor = [UIColor clearColor];
         _cancelBtn.titleLabel.lineBreakMode = NSLineBreakByTruncatingTail;
         [_cancelBtn setTitleColor:[MOTools colorWithHexString:@"#999999" alpha:1.0] forState:UIControlStateNormal];
-        _cancelBtn.titleLabel.font = [UIFont systemFontOfSize:12.0];
+        _cancelBtn.titleLabel.font = [MOTextTools getTheFontWithSize:12.0 AndFontName:@"Akrobat"];
         _cancelBtn.layer.cornerRadius = 30.0 / 2.0;
         _cancelBtn.layer.masksToBounds = YES;
         [_cancelBtn setTitle:@"Cancel" forState:UIControlStateNormal];