Commit 5ac7d77e by pierce

小野提出的UI修改

parent 622b9762
Showing with 135 additions and 210 deletions
......@@ -65,7 +65,7 @@
[_emptyButton setTitleColor:[UIColor fus_textColorRich] forState:UIControlStateNormal];
_emptyTitleLabel = [[YYLabel alloc] init];
_emptyTitleLabel.textColor = [UIColor colorWithHex:@"#B3B3B3"];
_emptyTitleLabel.textColor = [UIColor fus_textColorMedium];
_emptyTitleLabel.font = [UIFont fus_themeFont:15];
_emptyTitleLabel.numberOfLines = 0;
_emptyTitleLabel.lineBreakMode = NSLineBreakByWordWrapping;
......
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "直播结束页-背景@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "通用占位图@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_chat_icon_gift_13@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_chat_icon_gift_14@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_chat_icon_gift_15@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
......@@ -5,18 +5,18 @@
"scale" : "1x"
},
{
"filename" : "分享@2x.png",
"idiom" : "universal",
"filename" : "直播间-底部-分享icon-normal@2x.png",
"scale" : "2x"
},
{
"filename" : "分享@3x.png",
"idiom" : "universal",
"filename" : "直播间-底部-分享icon-normal@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}
\ No newline at end of file
}
......@@ -478,7 +478,7 @@ if (@available(iOS 11.0, *)) {height = 80 + UIView.fus_SafeBottom;}\
}
- (void)fus_initLevLabel {
_levLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 25, 14)];
_levLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 20, 14)];
_levLabel.backgroundColor = [UIColor colorWithHex:@"#D6D6D7"];
_levLabel.font = [UIFont fus_themeFont:9];
_levLabel.layer.cornerRadius = 7;
......@@ -661,7 +661,8 @@ if (@available(iOS 11.0, *)) {height = 80 + UIView.fus_SafeBottom;}\
UIImage *vipImg = [UIImage fus_imageWithLevel:model.level.integerValue];
_richImageView.image = vipImg;
if (vipImg) {
_richImageView.width = _richImageView.height / vipImg.size.height * vipImg.size.width;
_richImageView.width = ceil(_richImageView.height / vipImg.size.height * vipImg.size.width);
nickLineWidth += (nickLineItemSpace + _richImageView.width);
}
} else {
......
......@@ -121,6 +121,7 @@
- (void)fus_updateViewWithDataDict:(NSDictionary *)dataDict
{
[_faceImageView setWebImageWithSubURLString:[FUSCacheDataShare shareStore].userDetailInfo.face placeholder:[UIImage imageNamed:@"icon_head_default"] completion:nil];
[self.headerImageView setWebImageWithSubURLString:[FUSCacheDataShare shareStore].userDetailInfo.face];
_nicknameLabel.text = [FUSCacheDataShare shareStore].userDetailInfo.nickname;
NSString *bound = [dataDict[@"bonds"] description];
......
......@@ -14,9 +14,17 @@
<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="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="live_end_bg" translatesAutoresizingMaskIntoConstraints="NO" id="l9f-S1-E0C">
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="l9f-S1-E0C">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
</imageView>
<visualEffectView opaque="NO" contentMode="scaleAspectFill" translatesAutoresizingMaskIntoConstraints="NO" id="AUe-Zg-mlP">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" id="Iea-Sj-OA5">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
</view>
<blurEffect style="dark"/>
</visualEffectView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="irB-kM-nDY">
<rect key="frame" x="0.0" y="56" width="375" height="575"/>
<subviews>
......@@ -63,6 +71,8 @@
<button opaque="NO" userInteractionEnabled="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hUj-RF-q22">
<rect key="frame" x="0.0" y="10" width="220" height="35"/>
<fontDescription key="fontDescription" name="PingFangSC-Semibold" family="PingFang SC" pointSize="25"/>
<inset key="titleEdgeInsets" minX="3" minY="0.0" maxX="0.0" maxY="0.0"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="3" maxY="0.0"/>
<state key="normal" title="0" image="live_coin_bg_view">
<color key="titleColor" red="0.0" green="0.94117647058823528" blue="0.53333333333333333" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
......@@ -294,15 +304,19 @@
<viewLayoutGuide key="safeArea" id="Xki-Nn-95N"/>
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="AUe-Zg-mlP" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="7Wj-q3-7Zp"/>
<constraint firstItem="irB-kM-nDY" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="8yF-LE-fvo"/>
<constraint firstAttribute="trailing" secondItem="irB-kM-nDY" secondAttribute="trailing" id="Ay3-Lz-PUZ"/>
<constraint firstItem="l9f-S1-E0C" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="IqH-Ks-fy7"/>
<constraint firstItem="l9f-S1-E0C" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="Jz6-gg-gvb"/>
<constraint firstAttribute="bottom" secondItem="AUe-Zg-mlP" secondAttribute="bottom" id="Idx-pT-rOc"/>
<constraint firstItem="l9f-S1-E0C" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="KnA-Qw-45O"/>
<constraint firstAttribute="trailing" secondItem="AUe-Zg-mlP" secondAttribute="trailing" id="iBV-O3-c9E"/>
<constraint firstItem="Xki-Nn-95N" firstAttribute="bottom" secondItem="irB-kM-nDY" secondAttribute="bottom" constant="36" id="k6S-sL-PlT"/>
<constraint firstAttribute="trailing" secondItem="l9f-S1-E0C" secondAttribute="trailing" id="tWE-bm-lIv"/>
<constraint firstItem="l9f-S1-E0C" firstAttribute="trailing" secondItem="Xki-Nn-95N" secondAttribute="trailing" id="kFl-uj-E0j"/>
<constraint firstItem="AUe-Zg-mlP" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="rW1-5d-40X"/>
<constraint firstItem="irB-kM-nDY" firstAttribute="top" secondItem="Xki-Nn-95N" secondAttribute="top" constant="36" id="vtc-Ic-0iH"/>
<constraint firstItem="irB-kM-nDY" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="wFH-GI-zHB"/>
<constraint firstAttribute="bottom" secondItem="l9f-S1-E0C" secondAttribute="bottom" id="wfF-LY-SNt"/>
<constraint firstItem="l9f-S1-E0C" firstAttribute="leading" secondItem="Xki-Nn-95N" secondAttribute="leading" id="zc2-I7-XjM"/>
<constraint firstItem="l9f-S1-E0C" firstAttribute="bottom" secondItem="Xki-Nn-95N" secondAttribute="bottom" id="zrZ-zE-7pk"/>
</constraints>
<nil key="simulatedStatusBarMetrics"/>
<connections>
......@@ -334,8 +348,7 @@
</view>
</objects>
<resources>
<image name="live_coin_bg_view" width="35" height="35"/>
<image name="live_end_bg" width="375" height="667"/>
<image name="live_coin_bg_view" width="12" height="15.5"/>
<image name="live_end_bgView" width="279.5" height="287"/>
<image name="live_end_view_line" width="282.5" height="2"/>
</resources>
......
......@@ -98,7 +98,6 @@
/**
* 更新View
*
* @param dataModel 数据
* @param islike 是否追踪
*/
- (void)fus_updateViewWithDataDict:(NSDictionary *)dataDict islike:(BOOL)islike
......@@ -128,6 +127,8 @@
if ([NSString isNull:imageUrlStr] || [imageUrlStr isEqualToString:@"(null)"] || [imageUrlStr isEqualToString:@"(null)"]) {
imageUrlStr = dataDict[@"result"][@"face"];
}
[self.bgHeaderImageView setWebImageWithSubURLString:imageUrlStr];
[_userHeaderView fus_setHeaderImageWithHeaderUrl:imageUrlStr placeholder:[UIImage imageNamed:@"icon_head_default"]];
if (islike) {
......@@ -158,32 +159,32 @@
// }
if ([NSArray isNull:userInfos]) {
_guessLikeLabel.hidden = YES;
_leftLineView.hidden = YES;
_rightLineView.hidden = YES;
self.guessLikeLabel.hidden = YES;
self.leftLineView.hidden = YES;
self.rightLineView.hidden = YES;
}else{
_guessLikeLabel.hidden = NO;
_leftLineView.hidden = NO;
_rightLineView.hidden = NO;
self.guessLikeLabel.hidden = NO;
self.leftLineView.hidden = NO;
self.rightLineView.hidden = NO;
[_bottomUserArr removeAllObjects];
[self.bottomUserArr removeAllObjects];
for (FUSBaoFangAnchorModel *anchor in userInfos) {
BOOL isRepeat = NO;
if ([anchor.uid isEqualToString:[FUSLiveHelper shareInstance].roomInfoModel.roomId]) {
isRepeat = YES;
}
if (isRepeat == NO&&_bottomUserArr.count < bottomMaxCount) {
if (isRepeat == NO&&self.bottomUserArr.count < bottomMaxCount) {
if (!anchor.themeInfoModel) {
[_bottomUserArr addObject:anchor];
[self.bottomUserArr addObject:anchor];
}
}
}
[_bottomCollectionView reloadData];
[self.bottomCollectionView reloadData];
}
} failure:^(NSString *msg, int code) {
_guessLikeLabel.hidden = YES;
_leftLineView.hidden = YES;
_rightLineView.hidden = YES;
self.guessLikeLabel.hidden = YES;
self.leftLineView.hidden = YES;
self.rightLineView.hidden = YES;
}];
}
......
......@@ -14,9 +14,17 @@
<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="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="live_end_bg" translatesAutoresizingMaskIntoConstraints="NO" id="bep-h8-dpj">
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="bep-h8-dpj">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
</imageView>
<visualEffectView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="KcM-uB-jqb">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" id="PPw-jA-YOi">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
</view>
<blurEffect style="dark"/>
</visualEffectView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hfR-0l-zzh">
<rect key="frame" x="67" y="70" width="241" height="165"/>
<subviews>
......@@ -134,23 +142,27 @@
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="hfR-0l-zzh" firstAttribute="top" secondItem="tUj-O6-BUD" secondAttribute="top" constant="50" id="BHq-3j-LmQ"/>
<constraint firstItem="hfR-0l-zzh" firstAttribute="centerX" secondItem="bep-h8-dpj" secondAttribute="centerX" id="CLV-mC-HeF"/>
<constraint firstItem="hfR-0l-zzh" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="C9j-jW-qQ5"/>
<constraint firstItem="nvu-QG-onM" firstAttribute="leading" secondItem="IFY-dw-Sd9" secondAttribute="trailing" constant="3" id="Eex-9B-CVj"/>
<constraint firstItem="sLS-jG-1mQ" firstAttribute="top" secondItem="hfR-0l-zzh" secondAttribute="bottom" constant="49" id="F93-uO-qgm"/>
<constraint firstItem="lP3-OG-bnc" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="Gix-zf-1Ni"/>
<constraint firstItem="IFY-dw-Sd9" firstAttribute="centerY" secondItem="nvu-QG-onM" secondAttribute="centerY" id="Hn5-JZ-DUH"/>
<constraint firstItem="hfR-0l-zzh" firstAttribute="width" secondItem="bep-h8-dpj" secondAttribute="width" multiplier="241:375" id="IT4-zk-dwe"/>
<constraint firstItem="KcM-uB-jqb" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="IEn-hn-NaN"/>
<constraint firstItem="caq-O6-ufe" firstAttribute="centerY" secondItem="nvu-QG-onM" secondAttribute="centerY" id="IWF-tt-RRD"/>
<constraint firstItem="sLS-jG-1mQ" firstAttribute="top" secondItem="nvu-QG-onM" secondAttribute="bottom" constant="8" id="N4S-d9-EDy"/>
<constraint firstItem="sLS-jG-1mQ" firstAttribute="centerX" secondItem="bep-h8-dpj" secondAttribute="centerX" id="XdA-iB-J6m"/>
<constraint firstAttribute="trailing" secondItem="bep-h8-dpj" secondAttribute="trailing" id="Z7p-Tc-kt2"/>
<constraint firstItem="bep-h8-dpj" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="g4C-dE-FrM"/>
<constraint firstItem="sLS-jG-1mQ" firstAttribute="width" secondItem="bep-h8-dpj" secondAttribute="width" multiplier="0.7" id="hKR-23-dq3"/>
<constraint firstItem="bep-h8-dpj" firstAttribute="leading" secondItem="tUj-O6-BUD" secondAttribute="leading" id="S6R-Xn-p1C"/>
<constraint firstItem="hfR-0l-zzh" firstAttribute="width" secondItem="iN0-l3-epB" secondAttribute="width" multiplier="0.642667" id="UfK-kl-JOx"/>
<constraint firstItem="bep-h8-dpj" firstAttribute="trailing" secondItem="tUj-O6-BUD" secondAttribute="trailing" id="UzY-nA-ZER"/>
<constraint firstItem="bep-h8-dpj" firstAttribute="bottom" secondItem="tUj-O6-BUD" secondAttribute="bottom" id="Z1t-Vr-TWN"/>
<constraint firstItem="KcM-uB-jqb" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="ZuI-NU-FVj"/>
<constraint firstItem="sLS-jG-1mQ" firstAttribute="width" secondItem="iN0-l3-epB" secondAttribute="width" multiplier="0.7" id="cCd-pf-ho7"/>
<constraint firstAttribute="trailing" secondItem="KcM-uB-jqb" secondAttribute="trailing" id="cVo-T7-vAA"/>
<constraint firstItem="nvu-QG-onM" firstAttribute="centerX" secondItem="sLS-jG-1mQ" secondAttribute="centerX" id="hpy-d9-PiD"/>
<constraint firstItem="bep-h8-dpj" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="jJX-dc-pwg"/>
<constraint firstItem="lP3-OG-bnc" firstAttribute="top" secondItem="sLS-jG-1mQ" secondAttribute="bottom" constant="21.5" id="mxq-N6-hUY"/>
<constraint firstItem="bep-h8-dpj" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="nas-za-lZH"/>
<constraint firstAttribute="bottom" secondItem="bep-h8-dpj" secondAttribute="bottom" id="ojC-eM-9Rk"/>
<constraint firstItem="caq-O6-ufe" firstAttribute="leading" secondItem="nvu-QG-onM" secondAttribute="trailing" constant="3" id="qSJ-E3-flC"/>
<constraint firstAttribute="bottom" secondItem="KcM-uB-jqb" secondAttribute="bottom" id="qdI-l7-Umi"/>
<constraint firstItem="sLS-jG-1mQ" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="ySD-GV-aT1"/>
</constraints>
<nil key="simulatedStatusBarMetrics"/>
<connections>
......@@ -167,7 +179,4 @@
<point key="canvasLocation" x="-918" y="-234"/>
</view>
</objects>
<resources>
<image name="live_end_bg" width="375" height="667"/>
</resources>
</document>
......@@ -99,7 +99,7 @@
self.onlineLabel.text = @"0";
self.onlineLabel.textColor = UIColor.whiteColor;
self.onlineLabel.backgroundColor = [UIColor colorWithHex:@"#87878A" alpha:0.32];
self.onlineLabel.layer.cornerRadius = 9;
self.onlineLabel.layer.cornerRadius = 7;
self.onlineLabel.layer.masksToBounds = YES;
self.onlineLabel.textAlignment = NSTextAlignmentCenter;
[self.contentView addSubview:self.onlineLabel];
......@@ -151,12 +151,12 @@
[self.onlineLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self.nicknameLabel.mas_right).offset(4);
make.centerY.equalTo(self.nicknameLabel.mas_centerY);
make.height.mas_equalTo(18);
make.width.mas_equalTo(25);
make.height.mas_equalTo(14);
make.width.mas_equalTo(20);
}];
[self.vipImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.height.mas_equalTo(13);
make.width.height.mas_equalTo(14);
make.centerY.equalTo(self.nicknameLabel.mas_centerY);
make.left.equalTo(self.onlineLabel.mas_right).offset(4);
}];
......@@ -268,7 +268,7 @@
self.vipImageView.hidden = NO;
self.vipImageView.image = [UIImage imageNamed:@"live_chat_inpay_user_icon"];
[self.vipImageView mas_remakeConstraints:^(MASConstraintMaker *make) {
make.width.height.mas_equalTo(15);
make.width.height.mas_equalTo(14);
make.centerY.equalTo(self.nicknameLabel.mas_centerY);
make.left.equalTo(self.onlineLabel.mas_right).offset(4);
}];
......
......@@ -79,7 +79,7 @@
self.onlineLabel.text = @"0";
self.onlineLabel.textColor = UIColor.whiteColor;
self.onlineLabel.backgroundColor = [UIColor colorWithHex:@"#87878A" alpha:0.32];
self.onlineLabel.layer.cornerRadius = 9;
self.onlineLabel.layer.cornerRadius = 7;
self.onlineLabel.layer.masksToBounds = YES;
self.onlineLabel.textAlignment = NSTextAlignmentCenter;
[self.contentView addSubview:self.onlineLabel];
......@@ -111,12 +111,12 @@
make.left.equalTo(self.nicknameLabel.mas_right).offset(4);
make.centerY.equalTo(self.nicknameLabel.mas_centerY);
make.height.mas_equalTo(18);
make.width.mas_equalTo(25);
make.height.mas_equalTo(14);
make.width.mas_equalTo(20);
}];
[self.vipImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.height.mas_equalTo(13);
make.width.height.mas_equalTo(14);
make.centerY.equalTo(self.nicknameLabel.mas_centerY);
make.left.equalTo(self.onlineLabel.mas_right).offset(4);
}];
......@@ -203,7 +203,7 @@
self.vipImageView.hidden = NO;
self.vipImageView.image = [UIImage imageNamed:@"live_chat_inpay_user_icon"];
[self.vipImageView mas_remakeConstraints:^(MASConstraintMaker *make) {
make.width.height.mas_equalTo(15);
make.width.height.mas_equalTo(14);
make.centerY.equalTo(self.nicknameLabel.mas_centerY);
make.left.equalTo(self.onlineLabel.mas_right).offset(4);
}];
......
......@@ -260,7 +260,7 @@
_faceImageView.layer.cornerRadius = _faceImageView.height / 2.0;
[_bgView addSubview:_faceImageView];
self.levelImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 26, 13)];
self.levelImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 28, 14)];
self.levelImageView.centerX = self.faceImageView.centerX;
self.levelImageView.centerY = self.faceImageView.centerY;
_levelImageView.contentMode = UIViewContentModeScaleAspectFit;
......
......@@ -188,7 +188,7 @@
// [self addSubview:_userRichWearImageView];
//用户等级图标
_userLevelIcon = [[UIImageView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_userIcon.frame) + 7, _userIcon.top+2, 25, 15)];
_userLevelIcon = [[UIImageView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_userIcon.frame) + 7, _userIcon.top+2, 28, 14)];
_userLevelIcon.contentMode = UIViewContentModeScaleAspectFit;
[self addSubview:_userLevelIcon];
......
......@@ -75,7 +75,7 @@
_muteImageView.hidden = YES;
[self addSubview:_muteImageView];
_richImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 26, 13)];
_richImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 28, 14)];
_richImageView.contentMode = UIViewContentModeScaleAspectFit;
_richImageView.centerX = _faceView.centerX;
_richImageView.centerY = _faceView.bottom;
......@@ -167,7 +167,7 @@
UIImage *vipImage = [UIImage fus_imageWithLevel:model.level.integerValue];;
_richImageView.image = vipImage;
if (vipImage) {
_richImageView.width = _richImageView.height / vipImage.size.height * vipImage.size.width;
_richImageView.width = ceil(_richImageView.height / vipImage.size.height * vipImage.size.width);
}
}else{
_richImageView.hidden = YES;
......
......@@ -64,7 +64,7 @@
[_nameLabel sizeToFit];
[self.contentView addSubview:_nameLabel];
_vipImgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 30, 15)];
_vipImgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 28, 14)];
_vipImgView.centerY = self.height/2.0;
[self.contentView addSubview:_vipImgView];
......@@ -165,7 +165,7 @@
UIImage *vipImage = [UIImage fus_imageWithLevel:model.level.integerValue];;
_vipImgView.image = vipImage;
if (vipImage) {
_vipImgView.width = _vipImgView.height / vipImage.size.height * vipImage.size.width;
_vipImgView.width = ceil(_vipImgView.height / vipImage.size.height * vipImage.size.width);
}
}else{
......
......@@ -25,7 +25,7 @@
// 底部的背景view
@property (nonatomic, strong) UIView *bottomBgView;
// 横线
@property (nonatomic, strong) UIView *lineView;
//@property (nonatomic, strong) UIView *lineView;
// 主题
@property (nonatomic, strong) UILabel *themeLabel;
......@@ -58,7 +58,7 @@
[self addSubview:self.topBgView];
[self addSubview:self.bottomBgView];
[self.bottomBgView addSubview:self.themeLabel];
[self.bottomBgView addSubview:self.lineView];
// [self.bottomBgView addSubview:self.lineView];
[self.bottomBgView addSubview:self.tableView];
[self.topBgView mas_makeConstraints:^(MASConstraintMaker *make) {
......@@ -79,15 +79,15 @@
make.height.mas_equalTo(16);
}];
[self.lineView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self.bottomBgView).inset(16);
make.top.equalTo(self.themeLabel.mas_bottom).offset(15);
make.height.mas_equalTo(0.5);
}];
// [self.lineView mas_makeConstraints:^(MASConstraintMaker *make) {
// make.left.right.equalTo(self.bottomBgView).inset(16);
// make.top.equalTo(self.themeLabel.mas_bottom).offset(15);
// make.height.mas_equalTo(0.5);
// }];
[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.bottom.equalTo(self.bottomBgView);
make.top.equalTo(self.lineView.mas_bottom);
make.top.equalTo(self.themeLabel.mas_bottom).offset(15);
}];
}
......@@ -260,13 +260,13 @@
}
return _bottomBgView;
}
- (UIView *)lineView {
if (!_lineView) {
_lineView = [[UIView alloc] init];
_lineView.backgroundColor = [UIColor fus_lineColor];
}
return _lineView;
}
//- (UIView *)lineView {
// if (!_lineView) {
// _lineView = [[UIView alloc] init];
// _lineView.backgroundColor = [UIColor fus_lineColor];
// }
// return _lineView;
//}
- (UILabel *)themeLabel {
if (!_themeLabel) {
......
......@@ -133,7 +133,7 @@
- (UISwitch *)switchBtn {
if (!_switchBtn) {
_switchBtn = [[UISwitch alloc] init];
_switchBtn.onTintColor = UIColor.fus_appSubColor;
_switchBtn.onTintColor = UIColor.fus_diamondBlue;
_switchBtn.backgroundColor = [UIColor fus_appBGPressColor];
_switchBtn.layer.cornerRadius = 15.5;
_switchBtn.clipsToBounds = YES;
......
......@@ -164,7 +164,7 @@ static dispatch_queue_t get_live_message_box_parse_queue(){
_emptyView = [[FUSEmptyView alloc] initWithFrame:CGRectMake(0, 0, _tableView.width, 150)];
_emptyView.contentAligment = FUSEmptyViewAligmentCenter;
[_emptyView fus_setEmptyViewIcon:[UIImage imageNamed:@"live_message_box_no_message_icon"] title:[NSString fus_localString:@"您还没有收到私信"] buttonTittle:nil];
[_emptyView fus_setEmptyViewIcon:[UIImage imageNamed:@"com_icon_hot_no_data_empty"] title:[NSString fus_localString:@"您还没有收到私信"] buttonTittle:nil];
_emptyView.hidden = YES;
_emptyView.backgroundColor = [UIColor clearColor];
_emptyView.center = CGPointMake(_bgView.width / 2.0, (_bgView.height / 2.0) + _headBGView.height / 2.0);
......
......@@ -534,7 +534,7 @@
UIImage *levelImage = [UIImage fus_imageWithLevel:level.integerValue];
if (levelImage) {
CGFloat height = 18;
CGFloat height = 14;
CGFloat width = height / levelImage.size.height * levelImage.size.width;
NSAttributedString *levelAttr = [NSAttributedString attachmentStringWithContent:levelImage contentMode:UIViewContentModeScaleAspectFit attachmentSize:CGSizeMake(width, height) alignToFont:[UIFont fus_themeFont:15] alignment:YYTextVerticalAlignmentCenter];
[attr appendAttributedString:levelAttr];
......@@ -642,7 +642,7 @@
// }
UIImage *levelImage = [UIImage fus_imageWithLevel:level.integerValue];
if (levelImage) {
CGFloat height = 18;
CGFloat height = 14;
CGFloat width = height / levelImage.size.height * levelImage.size.width;
NSAttributedString *levelAttr = [NSAttributedString attachmentStringWithContent:levelImage contentMode:UIViewContentModeScaleAspectFit attachmentSize:CGSizeMake(width, height) alignToFont:[UIFont fus_themeFont:15] alignment:YYTextVerticalAlignmentCenter];
[attr appendAttributedString:levelAttr];
......@@ -796,7 +796,7 @@
if (levelStr.integerValue > 0) {
UIImage *levelImage = [UIImage fus_imageWithLevel:levelStr.integerValue];
if (levelImage) {
CGFloat height = 18;
CGFloat height = 14;
CGFloat width = height / levelImage.size.height * levelImage.size.width;
NSAttributedString *levelAttr = [NSAttributedString attachmentStringWithContent:levelImage contentMode:UIViewContentModeScaleAspectFit attachmentSize:CGSizeMake(width, height) alignToFont:[UIFont fus_themeFont:15] alignment:YYTextVerticalAlignmentCenter];
[attr appendAttributedString:levelAttr];
......
......@@ -283,7 +283,7 @@
UIImage *levelImage = [UIImage fus_imageWithLevel:level.integerValue];
if (levelImage) {
CGFloat height = 18;
CGFloat height = 14;
CGFloat width = height / levelImage.size.height * levelImage.size.width;
NSAttributedString *levelAttr = [NSAttributedString attachmentStringWithContent:levelImage contentMode:UIViewContentModeScaleAspectFit attachmentSize:CGSizeMake(width, height) alignToFont:[UIFont fus_themeFont:15] alignment:YYTextVerticalAlignmentCenter];
[attr appendAttributedString:levelAttr];
......@@ -392,7 +392,7 @@
UIImage *levelImage = [UIImage fus_imageWithLevel:level.integerValue];
if (levelImage) {
CGFloat height = 18;
CGFloat height = 14;
CGFloat width = height / levelImage.size.height * levelImage.size.width;
NSAttributedString *levelAttr = [NSAttributedString attachmentStringWithContent:levelImage contentMode:UIViewContentModeScaleAspectFit attachmentSize:CGSizeMake(width, height) alignToFont:[UIFont fus_themeFont:15] alignment:YYTextVerticalAlignmentCenter];
[attr appendAttributedString:levelAttr];
......@@ -545,7 +545,7 @@
// 有等级
UIImage *levelImage = [UIImage fus_imageWithLevel:levelStr.integerValue];
if (levelImage) {
CGFloat height = 18;
CGFloat height = 14;
CGFloat width = height / levelImage.size.height * levelImage.size.width;
NSAttributedString *levelAttr = [NSAttributedString attachmentStringWithContent:levelImage contentMode:UIViewContentModeScaleAspectFit attachmentSize:CGSizeMake(width, height) alignToFont:[UIFont fus_themeFont:15] alignment:YYTextVerticalAlignmentCenter];
[attr appendAttributedString:levelAttr];
......
......@@ -119,7 +119,7 @@ typedef NS_ENUM(NSInteger,PKAnchorType) {
/// 根据有几个按钮分成几等分
CGFloat cellWith = self.width / anchorTypeArr.count;
CGFloat itemCenterX = cellWith * i + cellWith / 2.0f;
anchorTypeBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 22, cardWidth, cardWidth)];
anchorTypeBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 10, cardWidth, cardWidth)];
anchorTypeBtn.centerX = itemCenterX;
anchorTypeBtn.tag = i;
......
......@@ -69,7 +69,7 @@
UIImage *vipImage = [UIImage fus_imageWithLevel:model.level.integerValue];;
self.vipImageView.image = vipImage;
if (vipImage) {
self.vipImageView.width = self.vipImageView.height / vipImage.size.height * vipImage.size.width;
self.vipImageView.width = ceil(self.vipImageView.height / vipImage.size.height * vipImage.size.width);
}
}
}
......
......@@ -31,9 +31,9 @@
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="vip_icon_svip" translatesAutoresizingMaskIntoConstraints="NO" id="DI5-z3-n8n">
<rect key="frame" x="104" y="41.5" width="25" height="17"/>
<rect key="frame" x="104" y="43" width="25" height="14"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="GNH-Bo-t89"/>
<constraint firstAttribute="height" constant="14" id="GNH-Bo-t89"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Qvd-n6-41O">
......
......@@ -508,7 +508,7 @@
- (UIImageView *)richImageView {
if (!_richImageView) {
_richImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 30, 12)];
_richImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 28, 14)];
}
return _richImageView;
}
......
......@@ -878,7 +878,7 @@
- (UIImageView *)richImageView {
if (!_richImageView) {
_richImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 30, 12)];
_richImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 28, 14)];
_richImageView.contentMode = UIViewContentModeScaleAspectFit;
}
return _richImageView;
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17506" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17505"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
......@@ -32,10 +32,10 @@
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="RzG-NN-PU0" userLabel="vipLevelImageView">
<rect key="frame" x="99" y="83" width="41" height="17"/>
<rect key="frame" x="99" y="84.5" width="28" height="14"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="vOg-Jk-xHt"/>
<constraint firstAttribute="width" constant="41" id="xdz-4U-7OX"/>
<constraint firstAttribute="height" constant="14" id="vOg-Jk-xHt"/>
<constraint firstAttribute="width" constant="28" id="xdz-4U-7OX"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="751" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kWX-qq-uKG">
......
......@@ -284,7 +284,7 @@
- (UIImageView *)richImageView {
if (!_richImageView) {
_richImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 30, 12)];
_richImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 28, 14)];
}
return _richImageView;
}
......
......@@ -3,7 +3,7 @@
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22684"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
......@@ -55,10 +55,10 @@
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="yK4-3R-zpP">
<rect key="frame" x="69" y="7" width="0.0" height="13"/>
<rect key="frame" x="69" y="6.5" width="0.0" height="14"/>
<constraints>
<constraint firstAttribute="width" id="IuF-1Q-aPs"/>
<constraint firstAttribute="height" constant="13" id="Ksp-bt-cSU"/>
<constraint firstAttribute="height" constant="14" id="Ksp-bt-cSU"/>
</constraints>
</imageView>
</subviews>
......
......@@ -377,7 +377,7 @@
- (UIImageView *)richImageView {
if (!_richImageView) {
_richImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 30, 12)];
_richImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 28, 14)];
_richImageView.contentMode = UIViewContentModeScaleAspectFit;
}
return _richImageView;
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17506" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17505"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
......@@ -46,10 +46,10 @@
<nil key="highlightedColor"/>
</label>
<imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="7Ur-HP-KZq">
<rect key="frame" x="102" y="27" width="39" height="18"/>
<rect key="frame" x="102" y="29" width="28" height="14"/>
<constraints>
<constraint firstAttribute="width" constant="39" id="3UB-6b-QSB"/>
<constraint firstAttribute="height" constant="18" id="7kz-lw-DUW"/>
<constraint firstAttribute="width" constant="28" id="3UB-6b-QSB"/>
<constraint firstAttribute="height" constant="14" id="7kz-lw-DUW"/>
</constraints>
</imageView>
</subviews>
......
......@@ -112,7 +112,7 @@
- (UIImageView *)vipImageView {
if (!_vipImageView) {
_vipImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 41, 17)];
_vipImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 28, 14)];
}
return _vipImageView;
}
......
......@@ -42,7 +42,7 @@ static CGFloat const kBaseSize = 40.0f;
_faceImageView.contentMode = UIViewContentModeScaleAspectFill;
[self addSubview:_faceImageView];
_richWearImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, _faceImageView.width, _faceImageView.height / 40.0 * 13.0)];
_richWearImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, _faceImageView.width, 14)];
_richWearImageView.contentMode = UIViewContentModeScaleAspectFit;
_richWearImageView.center = _faceImageView.center;
[self addSubview:_richWearImageView];
......@@ -72,7 +72,7 @@ static CGFloat const kBaseSize = 40.0f;
self.faceImageView.layer.cornerRadius = self.faceImageView.height / 2;
self.faceImageView.layer.masksToBounds = YES;
self.richWearImageView.frame = CGRectMake(0, 0, _faceImageView.width, _faceImageView.height / 40.0 * 13.0);
self.richWearImageView.frame = CGRectMake(0, 0, _faceImageView.width, 14);
self.richWearImageView.center = CGPointMake(self.faceImageView.centerX, self.faceImageView.bottom);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment