Browse Source

我的界面改版

xiongzhu 7 years ago
parent
commit
2af9ebaecb
29 changed files with 523 additions and 42 deletions
  1. 23 0
      千模/Assets.xcassets/个人中心/share_icon_pengyouquan.imageset/Contents.json
  2. BIN
      千模/Assets.xcassets/个人中心/share_icon_pengyouquan.imageset/share_icon_pengyouquan.png
  3. BIN
      千模/Assets.xcassets/个人中心/share_icon_pengyouquan.imageset/share_icon_pengyouquan@2x.png
  4. BIN
      千模/Assets.xcassets/个人中心/share_icon_pengyouquan.imageset/share_icon_pengyouquan@3x.png
  5. 23 0
      千模/Assets.xcassets/个人中心/share_icon_qq.imageset/Contents.json
  6. BIN
      千模/Assets.xcassets/个人中心/share_icon_qq.imageset/share_icon_qq.png
  7. BIN
      千模/Assets.xcassets/个人中心/share_icon_qq.imageset/share_icon_qq@2x.png
  8. BIN
      千模/Assets.xcassets/个人中心/share_icon_qq.imageset/share_icon_qq@3x.png
  9. 23 0
      千模/Assets.xcassets/个人中心/share_icon_qqkongjian.imageset/Contents.json
  10. BIN
      千模/Assets.xcassets/个人中心/share_icon_qqkongjian.imageset/share_icon_qqkongjian.png
  11. BIN
      千模/Assets.xcassets/个人中心/share_icon_qqkongjian.imageset/share_icon_qqkongjian@2x.png
  12. BIN
      千模/Assets.xcassets/个人中心/share_icon_qqkongjian.imageset/share_icon_qqkongjian@3x.png
  13. 23 0
      千模/Assets.xcassets/个人中心/share_icon_weixin.imageset/Contents.json
  14. BIN
      千模/Assets.xcassets/个人中心/share_icon_weixin.imageset/share_icon_weixin.png
  15. BIN
      千模/Assets.xcassets/个人中心/share_icon_weixin.imageset/share_icon_weixin@2x.png
  16. BIN
      千模/Assets.xcassets/个人中心/share_icon_weixin.imageset/share_icon_weixin@3x.png
  17. 23 0
      千模/Assets.xcassets/个人中心/share_icon_xinlang.imageset/Contents.json
  18. BIN
      千模/Assets.xcassets/个人中心/share_icon_xinlang.imageset/share_icon_xinlang.png
  19. BIN
      千模/Assets.xcassets/个人中心/share_icon_xinlang.imageset/share_icon_xinlang@2x.png
  20. BIN
      千模/Assets.xcassets/个人中心/share_icon_xinlang.imageset/share_icon_xinlang@3x.png
  21. 15 0
      千模/MyInfo/SharePopViewController.h
  22. 295 0
      千模/MyInfo/SharePopViewController.m
  23. 18 0
      千模/MyInfo/SharePopViewController.xib
  24. 17 0
      千模/MyInfo/ShareViewController.h
  25. 32 0
      千模/MyInfo/ShareViewController.m
  26. 22 0
      千模/MyInfo/ShareViewController.xib
  27. 1 1
      千模/MyInfo/View/ShadowView.h
  28. 2 11
      千模/MyInfo/View/ShadowView.m
  29. 6 30
      千模/MyInfo/View/ShadowView.xib

+ 23 - 0
千模/Assets.xcassets/个人中心/share_icon_pengyouquan.imageset/Contents.json

@@ -0,0 +1,23 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "share_icon_pengyouquan.png",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "share_icon_pengyouquan@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "share_icon_pengyouquan@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN
千模/Assets.xcassets/个人中心/share_icon_pengyouquan.imageset/share_icon_pengyouquan.png


BIN
千模/Assets.xcassets/个人中心/share_icon_pengyouquan.imageset/share_icon_pengyouquan@2x.png


BIN
千模/Assets.xcassets/个人中心/share_icon_pengyouquan.imageset/share_icon_pengyouquan@3x.png


+ 23 - 0
千模/Assets.xcassets/个人中心/share_icon_qq.imageset/Contents.json

@@ -0,0 +1,23 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "share_icon_qq.png",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "share_icon_qq@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "share_icon_qq@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN
千模/Assets.xcassets/个人中心/share_icon_qq.imageset/share_icon_qq.png


BIN
千模/Assets.xcassets/个人中心/share_icon_qq.imageset/share_icon_qq@2x.png


BIN
千模/Assets.xcassets/个人中心/share_icon_qq.imageset/share_icon_qq@3x.png


+ 23 - 0
千模/Assets.xcassets/个人中心/share_icon_qqkongjian.imageset/Contents.json

@@ -0,0 +1,23 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "share_icon_qqkongjian.png",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "share_icon_qqkongjian@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "share_icon_qqkongjian@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN
千模/Assets.xcassets/个人中心/share_icon_qqkongjian.imageset/share_icon_qqkongjian.png


BIN
千模/Assets.xcassets/个人中心/share_icon_qqkongjian.imageset/share_icon_qqkongjian@2x.png


BIN
千模/Assets.xcassets/个人中心/share_icon_qqkongjian.imageset/share_icon_qqkongjian@3x.png


+ 23 - 0
千模/Assets.xcassets/个人中心/share_icon_weixin.imageset/Contents.json

@@ -0,0 +1,23 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "share_icon_weixin.png",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "share_icon_weixin@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "share_icon_weixin@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN
千模/Assets.xcassets/个人中心/share_icon_weixin.imageset/share_icon_weixin.png


BIN
千模/Assets.xcassets/个人中心/share_icon_weixin.imageset/share_icon_weixin@2x.png


BIN
千模/Assets.xcassets/个人中心/share_icon_weixin.imageset/share_icon_weixin@3x.png


+ 23 - 0
千模/Assets.xcassets/个人中心/share_icon_xinlang.imageset/Contents.json

@@ -0,0 +1,23 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "share_icon_xinlang.png",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "share_icon_xinlang@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "share_icon_xinlang@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN
千模/Assets.xcassets/个人中心/share_icon_xinlang.imageset/share_icon_xinlang.png


BIN
千模/Assets.xcassets/个人中心/share_icon_xinlang.imageset/share_icon_xinlang@2x.png


BIN
千模/Assets.xcassets/个人中心/share_icon_xinlang.imageset/share_icon_xinlang@3x.png


+ 15 - 0
千模/MyInfo/SharePopViewController.h

@@ -0,0 +1,15 @@
+//
+//  ShareViewController.h
+//  KeleAppProject
+//
+//  Created by 熊竹 on 2018/3/5.
+//  Copyright © 2018年 Cen Zhou. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@class HomeModel;
+
+@interface ShareViewController : UIViewController
+- (instancetype)initWithModel:(HomeModel *)model;
+@end

+ 295 - 0
千模/MyInfo/SharePopViewController.m

@@ -0,0 +1,295 @@
+//
+//  ShareViewController.m
+//  KeleAppProject
+//
+//  Created by 熊竹 on 2018/3/5.
+//  Copyright © 2018年 Cen Zhou. All rights reserved.
+//
+
+#import "ShareViewController.h"
+#import "HomeModel.h"
+#import "ShareCell.h"
+#import <UMSocialCore/UMSocialCore.h>
+
+static NSString *shareCell = @"shareCell";
+
+@interface ShareViewController () <UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
+@property(nonatomic, strong) UICollectionView *collectionView;
+@property(nonatomic, strong) UIView *contentView;
+@property(nonatomic, strong) NSMutableArray *dataArray;
+@property(nonatomic, strong) HomeModel *model;
+@end
+
+@implementation ShareViewController
+- (instancetype)initWithModel:(HomeModel *)model {
+    if (self = [super init]) {
+        _model = model;
+        [self addData];
+        self.modalPresentationStyle = UIModalPresentationOverCurrentContext;
+        self.view.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0];
+        self.view.userInteractionEnabled = YES;
+    }
+
+    return self;
+}
+
+- (void)viewDidLoad {
+    [super viewDidLoad];
+    UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(fingerTapped:)];
+    singleTap.cancelsTouchesInView = NO;
+    [self.view addGestureRecognizer:singleTap];
+
+    UIView *contentView = [[UIView alloc] init];
+    contentView.backgroundColor = [UIColor clearColor];
+    self.contentView = contentView;
+    [self.view addSubview:contentView];
+    [contentView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.bottom.left.right.equalTo(self.view);
+        make.height.mas_equalTo(200 * HEIGHT);
+    }];
+    contentView.transform = CGAffineTransformMakeTranslation(0, 200);
+
+    UIView *shareItemView = [[UIView alloc] init];
+    shareItemView.backgroundColor = KLColor_C1;
+    [contentView addSubview:shareItemView];
+    shareItemView.layer.masksToBounds = YES;
+    shareItemView.layer.cornerRadius = 10 * WIDTH;
+    [shareItemView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.left.right.equalTo(contentView);
+        make.bottom.equalTo(contentView).offset(-20 * HEIGHT);
+    }];
+
+    [contentView addSubview:self.collectionView];
+
+    UIView *cancelView = [[UIView alloc] init];
+    cancelView.backgroundColor = [UIColor whiteColor];
+    [contentView addSubview:cancelView];
+    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapCancel)];
+    [cancelView addGestureRecognizer:tap];
+    [cancelView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.right.bottom.equalTo(contentView);
+        make.height.mas_equalTo(44 * HEIGHT);
+    }];
+
+    UILabel *cancelTint = [[UILabel alloc] init];
+    cancelTint.text = @"取消";
+    cancelTint.textColor = KLColor_B12;
+    cancelTint.font = [UIFont fontWithName:@"PingFangSC-Regular" size:16 * WIDTH];
+    [cancelView addSubview:cancelTint];
+    [cancelTint mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.center.equalTo(cancelView);
+    }];
+}
+
+- (void)viewWillAppear:(BOOL)animated {
+    [super viewWillAppear:animated];
+    [UIView animateWithDuration:0.2
+                          delay:0
+                        options:UIViewAnimationOptionCurveEaseInOut
+                     animations:^{
+                         self.contentView.transform = CGAffineTransformMakeTranslation(0, 0);
+                         self.view.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.2];
+                     }
+                     completion:nil];
+}
+
+- (void)addData {
+    self.dataArray = [@[@{@"tint": @"微信好友", @"imageName": @"icon_fenxiang_weixin"}, @{@"tint": @"微信朋友圈", @"imageName": @"icon__fenxiang_pengyouquan"}, @{@"tint": @"手机QQ", @"imageName": @"icon_fenxiang_qq"}, @{@"tint": @"QQ空间", @"imageName": @"icon_fenxiang_qqkongjian"}, @{@"tint": @"微博", @"imageName": @"icon_fenxiang_xinlang"}, @{@"tint": @"违规举报", @"imageName": @"icon_fenxiang_jubao"}] mutableCopy];
+}
+
+- (void)fingerTapped:(UITapGestureRecognizer *)gestureRecognizer {
+    CGPoint point = [gestureRecognizer locationInView:self.contentView];
+    if (point.y < 0) {
+        [self tapCancel];
+    }
+}
+
+- (void)tapCancel {
+    [UIView animateWithDuration:0.2
+                          delay:0
+                        options:UIViewAnimationOptionCurveEaseInOut
+                     animations:^{
+                         self.contentView.transform = CGAffineTransformMakeTranslation(0, 200);
+                         self.view.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0];
+                     }
+                     completion:^(BOOL finished) {
+                         [self dismissViewControllerAnimated:NO completion:nil];
+                     }];
+}
+
+
+- (UICollectionView *)collectionView {
+    if (!_collectionView) {
+        UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
+        // 设置collectionView的滚动方向,需要注意的是如果使用了collectionview的headerview或者footerview的话, 如果设置了水平滚动方向的话,那么就只有宽度起作用了了
+        [layout setScrollDirection:UICollectionViewScrollDirectionHorizontal];
+        [layout setMinimumLineSpacing:30 * HEIGHT];
+        [layout setMinimumInteritemSpacing:0 * WIDTH];
+        [layout setItemSize:CGSizeMake(50 * WIDTH, 80 * HEIGHT)];
+
+        _collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 40 * HEIGHT, KLScreenW, 80 * HEIGHT) collectionViewLayout:layout];
+        _collectionView.contentInset = UIEdgeInsetsMake(0, 15 * WIDTH, 0, 15 * WIDTH);
+        _collectionView.backgroundColor = [UIColor clearColor];
+        [_collectionView registerClass:[ShareCell class] forCellWithReuseIdentifier:shareCell];
+        //注册头视图
+        _collectionView.dataSource = self;
+        _collectionView.delegate = self;
+        _collectionView.showsHorizontalScrollIndicator = NO;
+        _collectionView.showsVerticalScrollIndicator = NO;
+        _collectionView.bounces = YES;
+    }
+    return _collectionView;
+}
+
+#pragma mark -- UICollectionViewDataSource
+
+/** 每组cell的个数*/
+- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
+    return self.dataArray.count;
+}
+
+/** cell的内容*/
+- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
+
+    ShareCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:shareCell forIndexPath:indexPath];
+//    cell.backgroundColor = [UIColor whiteColor];
+//    [cell.titleBtn setTitle:self.dataArray[indexPath.row] forState:UIControlStateNormal];
+    NSDictionary *dic = self.dataArray[indexPath.row];
+    cell.logoImageView.image = [UIImage imageNamed:dic[@"imageName"]];
+    cell.tint.text = dic[@"tint"];
+    return cell;
+}
+
+
+#pragma mark -- UICollectionViewDelegate
+
+- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
+    UMSocialPlatformType platform;
+    UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"提示"
+                                                                   message:@"违规举报成功,我们会尽快处理"
+                                                            preferredStyle:UIAlertControllerStyleAlert];
+    UIAlertAction *confirm = [UIAlertAction actionWithTitle:@"确定"
+                                                      style:UIAlertActionStyleDefault
+                                                    handler:^(UIAlertAction *action) {
+                                                        [self tapCancel];
+                                                    }];
+    [alert addAction:confirm];
+    switch (indexPath.row) {
+        case 0:
+            platform = UMSocialPlatformType_WechatSession;
+            break;
+        case 1:
+            platform = UMSocialPlatformType_WechatTimeLine;
+            break;
+        case 2:
+            platform = UMSocialPlatformType_QQ;
+            break;
+        case 3:
+            platform = UMSocialPlatformType_Qzone;
+            break;
+        case 4:
+            platform = UMSocialPlatformType_Sina;
+            break;
+        case 5:
+            [self presentViewController:alert animated:YES completion:nil];
+            return;
+        default:
+            break;
+    }
+    if (indexPath.row == 4) {
+        //创建分享消息对象
+        UMSocialMessageObject *messageObject = [UMSocialMessageObject messageObject];
+
+        //设置文本
+        messageObject.text = [NSString stringWithFormat:@"%@  %@", _model.title, [NSString stringWithFormat:@"http://app.69mx.com/postInfo/share?id=%@", _model.postId]];
+
+        //创建图片内容对象
+        UMShareImageObject *shareObject = [[UMShareImageObject alloc] init];
+        //如果有缩略图,则设置缩略图
+        shareObject.thumbImage = _model.img;
+        [shareObject setShareImage:_model.img];
+
+        //分享消息对象设置分享内容对象
+        messageObject.shareObject = shareObject;
+
+        //调用分享接口
+        [[UMSocialManager defaultManager]
+                shareToPlatform:UMSocialPlatformType_Sina
+                  messageObject:messageObject
+          currentViewController:[self findViewController]
+                     completion:^(id data, NSError *error) {
+                         NSMutableDictionary *params = [@{
+                                 @"id": _model.postId,
+                                 @"shareNum": @1,
+                         } mutableCopy];
+                         [[KeleData sharedInstance]
+                                 updateNum:params
+                                   success:^(id responseObject) {
+                                   }
+                                   failure:^(NSError *error) {
+                                   }];
+                     }];
+    } else {
+        UMSocialMessageObject *messageObject = [UMSocialMessageObject messageObject];
+        NSString *thumbURL = _model.img;
+        UMShareWebpageObject *shareObject = [UMShareWebpageObject
+                shareObjectWithTitle:@"樱桃视频"
+                               descr:_model.title
+                           thumImage:thumbURL];
+        shareObject.webpageUrl = [NSString stringWithFormat:@"http://app.69mx.com/postInfo/share?id=%@", _model.postId];
+        messageObject.shareObject = shareObject;
+        [[UMSocialManager defaultManager]
+                shareToPlatform:platform
+                  messageObject:messageObject
+          currentViewController:[self findViewController]
+                     completion:^(id data, NSError *error) {
+                         NSMutableDictionary *params = [@{
+                                 @"id": _model.postId,
+                                 @"shareNum": @1,
+                         } mutableCopy];
+                         [[KeleData sharedInstance]
+                                 updateNum:params
+                                   success:^(id responseObject) {
+                                   }
+                                   failure:^(NSError *error) {
+                                   }];
+                     }];
+    }
+    [self tapCancel];
+}
+
+- (UIViewController *)findViewController {
+    id target = self;
+    while (target) {
+        target = ((UIResponder *) target).nextResponder;
+        if ([target isKindOfClass:[UIViewController class]]) {
+            break;
+        }
+    }
+    UIViewController *vc = target;
+    return vc;
+}
+
+- (NSMutableArray *)dataArray {
+    if (!_dataArray) {
+        _dataArray = [NSMutableArray array];
+    }
+    return _dataArray;
+}
+
+- (void)didReceiveMemoryWarning {
+    [super didReceiveMemoryWarning];
+    // Dispose of any resources that can be recreated.
+}
+
+/*
+#pragma mark - Navigation
+
+// In a storyboard-based application, you will often want to do a little preparation before navigation
+- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
+    // Get the new view controller using [segue destinationViewController].
+    // Pass the selected object to the new view controller.
+}
+*/
+
+@end

+ 18 - 0
千模/MyInfo/SharePopViewController.xib

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
+    <dependencies>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
+        <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"/>
+        <view contentMode="scaleToFill" id="iN0-l3-epB">
+            <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
+            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+            <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+            <viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
+        </view>
+    </objects>
+</document>

+ 17 - 0
千模/MyInfo/ShareViewController.h

@@ -0,0 +1,17 @@
+//
+//  ShareViewController.h
+//  千模
+//
+//  Created by Drew on 2018/10/25.
+//  Copyright © 2018 MUMEI. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface ShareViewController : UIViewController
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 32 - 0
千模/MyInfo/ShareViewController.m

@@ -0,0 +1,32 @@
+//
+//  ShareViewController.m
+//  千模
+//
+//  Created by Drew on 2018/10/25.
+//  Copyright © 2018 MUMEI. All rights reserved.
+//
+
+#import "ShareViewController.h"
+
+@interface ShareViewController ()
+
+@end
+
+@implementation ShareViewController
+
+- (void)viewDidLoad {
+    [super viewDidLoad];
+    // Do any additional setup after loading the view from its nib.
+}
+
+/*
+#pragma mark - Navigation
+
+// In a storyboard-based application, you will often want to do a little preparation before navigation
+- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
+    // Get the new view controller using [segue destinationViewController].
+    // Pass the selected object to the new view controller.
+}
+*/
+
+@end

+ 22 - 0
千模/MyInfo/ShareViewController.xib

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
+    <dependencies>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
+        <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" customClass="ShareViewController">
+            <connections>
+                <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
+            </connections>
+        </placeholder>
+        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
+        <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
+            <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
+            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+            <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+            <viewLayoutGuide key="safeArea" id="Q5M-cg-NOt"/>
+        </view>
+    </objects>
+</document>

+ 1 - 1
千模/MyInfo/View/ShadowView.h

@@ -3,7 +3,7 @@
 //  千模
 //
 //  Created by Drew on 2018/10/25.
-//  Copyright © 2018 MUMEI. All rights reserved.
+//  Copyright © 2018 MUMEI. All rights reserved.
 //
 
 #import <UIKit/UIKit.h>

+ 2 - 11
千模/MyInfo/View/ShadowView.m

@@ -3,7 +3,7 @@
 //  千模
 //
 //  Created by Drew on 2018/10/25.
-//  Copyright © 2018 MUMEI. All rights reserved.
+//  Copyright © 2018 MUMEI. All rights reserved.
 //
 
 #import "ShadowView.h"
@@ -17,14 +17,5 @@
     // Drawing code
 }
 */
-- (instancetype)initWithCoder:(NSCoder *)aDecoder
-{
-    if (self = [super initWithCoder:aDecoder]) {
-        UIView *containerView = [[[UINib nibWithNibName:@"CustomView" bundle:nil] instantiateWithOwner:self options:nil] objectAtIndex:0];
-        CGRect newFrame = CGRectMake(0, 0, 200, 200);
-        containerView.frame = newFrame;
-        [self addSubview:containerView];
-    }
-    return self;
-}
+
 @end

+ 6 - 30
千模/MyInfo/View/ShadowView.xib

@@ -1,42 +1,18 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
-    <device id="retina4_7" orientation="portrait">
-        <adaptation id="fullscreen"/>
-    </device>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
     <dependencies>
-        <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14283.14"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
         <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" customClass="ShadowView"/>
+        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
         <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
         <view contentMode="scaleToFill" id="iN0-l3-epB">
-            <rect key="frame" x="0.0" y="0.0" width="410" height="244"/>
+            <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
             <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-            <subviews>
-                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="into_icon_daifukuan" translatesAutoresizingMaskIntoConstraints="NO" id="Hkn-9u-Aqt">
-                    <rect key="frame" x="38" y="6" width="30" height="30"/>
-                    <constraints>
-                        <constraint firstAttribute="height" constant="30" id="8PY-ab-sz9"/>
-                        <constraint firstAttribute="width" constant="30" id="Rmt-rV-Qqg"/>
-                    </constraints>
-                </imageView>
-            </subviews>
-            <color key="backgroundColor" white="0.33333333333333331" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-            <constraints>
-                <constraint firstItem="Hkn-9u-Aqt" firstAttribute="top" secondItem="vUN-kp-3ea" secondAttribute="top" constant="6" id="e4x-Sl-nV5"/>
-                <constraint firstItem="Hkn-9u-Aqt" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" constant="38" id="orj-dv-3Nf"/>
-            </constraints>
-            <nil key="simulatedTopBarMetrics"/>
-            <nil key="simulatedBottomBarMetrics"/>
-            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
+            <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
             <viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
-            <point key="canvasLocation" x="158.40000000000001" y="-36.881559220389811"/>
         </view>
     </objects>
-    <resources>
-        <image name="into_icon_daifukuan" width="30" height="30"/>
-    </resources>
 </document>