换肤
This commit is contained in:
@@ -141,7 +141,7 @@ NSInteger maxMessageCount = 20;
|
||||
-(void)insertNoitce{
|
||||
QXRoomChatListModel *model = [QXRoomChatListModel new];
|
||||
model.messageType = QXRoomChatMessageTypeSystem;
|
||||
model.text = @"羽声严禁未成年人进行直播或打赏,官方将24小时在线巡查。我们提倡绿色直播,直播间严禁出现涉政、涉恐、涉黄、涉赌等违法违规内容,严禁宣传封建迷信、宗教极端思想、出现低俗色情、吸烟酗酒等内容,严禁违反社会主义核心价值观、践踏社会道德底线、诱导打赏、低俗 PK 、买卖金币等行为,请大家共同遵守、监督并及时举报。请勿相信各类刷钻、购买礼包、游戏币及电商贩卖等非官方广告信息,谨防网络诈骗。";
|
||||
model.text = @"秘地严禁未成年人进行直播或打赏,官方将24小时在线巡查。我们提倡绿色直播,直播间严禁出现涉政、涉恐、涉黄、涉赌等违法违规内容,严禁宣传封建迷信、宗教极端思想、出现低俗色情、吸烟酗酒等内容,严禁违反社会主义核心价值观、践踏社会道德底线、诱导打赏、低俗 PK 、买卖金币等行为,请大家共同遵守、监督并及时举报。请勿相信各类刷钻、购买礼包、游戏币及电商贩卖等非官方广告信息,谨防网络诈骗。";
|
||||
[self.dataArray addObject:model];
|
||||
[self.tableView reloadData];
|
||||
[self scrollToBottom];
|
||||
|
||||
@@ -25,6 +25,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface QXGiftScrollViewCell : UICollectionViewCell
|
||||
@property (nonatomic,strong)UIImageView *noticeImageView;
|
||||
@property (nonatomic,strong)UIImageView *bgImageView;
|
||||
@property (nonatomic,strong)MarqueeLabel *titleLabel;
|
||||
@property (nonatomic,strong)UIImageView *gotoRoomImageView;
|
||||
@property (nonatomic,strong)QXGiftScrollModel *model;
|
||||
|
||||
@@ -25,9 +25,9 @@ static NSInteger maxCount = 5;
|
||||
}
|
||||
|
||||
-(void)initSubViews{
|
||||
[self addRoundedCornersWithRadius:15.5];
|
||||
self.layer.borderWidth = 2;
|
||||
self.layer.borderColor = RGB16(0x333333).CGColor;
|
||||
// [self addRoundedCornersWithRadius:15.5];
|
||||
// self.layer.borderWidth = 2;
|
||||
// self.layer.borderColor = RGB16(0x333333).CGColor;
|
||||
self.cycleScrollView = [SDCycleScrollView cycleScrollViewWithFrame:self.bounds delegate:self placeholderImage:nil];
|
||||
self.cycleScrollView.pageControlStyle = SDCycleScrollViewPageContolStyleNone;
|
||||
self.cycleScrollView.scrollDirection = UICollectionViewScrollDirectionVertical;
|
||||
@@ -83,35 +83,46 @@ static NSInteger maxCount = 5;
|
||||
}
|
||||
- (void)setModel:(QXGiftScrollModel *)model{
|
||||
_model = model;
|
||||
self.titleLabel.text = [NSString stringWithFormat:@"%@%@%@ %@X%@",model.fromUserName,QXText(@"送给了"),model.toUserName,model.giftName,model.number];
|
||||
NSString *giftInfo = [NSString stringWithFormat:@"%@%@%@ %@X%@",model.fromUserName,QXText(@"送给了"),model.toUserName,model.giftName,model.number];
|
||||
NSMutableAttributedString *attr = [[NSMutableAttributedString alloc] initWithString:giftInfo];
|
||||
[attr yy_setColor:RGB16A(0xffffff, 0.84) range:[giftInfo rangeOfString:QXText(@"送给了")]];
|
||||
self.titleLabel.attributedText = attr;
|
||||
}
|
||||
-(void)initSubViews{
|
||||
self.bgImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"home_gift_bg"]];
|
||||
[self.contentView addSubview:self.bgImageView];
|
||||
[self.bgImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.right.left.top.bottom.equalTo(self);
|
||||
}];
|
||||
|
||||
self.gotoRoomImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"home_goto_room"]];
|
||||
self.gotoRoomImageView.contentMode = UIViewContentModeScaleAspectFit;
|
||||
[self.contentView addSubview:self.gotoRoomImageView];
|
||||
[self.gotoRoomImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.right.top.bottom.equalTo(self);
|
||||
make.width.mas_equalTo(85);
|
||||
}];
|
||||
|
||||
|
||||
self.noticeImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"home_notice"]];
|
||||
[self.contentView addSubview:self.noticeImageView];
|
||||
[self.noticeImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.equalTo(self).offset(12);
|
||||
make.right.mas_equalTo(-ScaleWidth(25));
|
||||
make.centerY.equalTo(self);
|
||||
make.size.mas_equalTo(CGSizeMake(24, 24));
|
||||
make.width.mas_equalTo(ScaleWidth(50));
|
||||
make.height.mas_equalTo(ScaleWidth(20));
|
||||
}];
|
||||
|
||||
|
||||
// self.noticeImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"home_notice"]];
|
||||
// [self.contentView addSubview:self.noticeImageView];
|
||||
// [self.noticeImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
// make.left.equalTo(self).offset(12);
|
||||
// make.centerY.equalTo(self);
|
||||
// make.size.mas_equalTo(CGSizeMake(24, 24));
|
||||
// }];
|
||||
|
||||
self.titleLabel = [[MarqueeLabel alloc] initWithFrame:CGRectZero];
|
||||
self.titleLabel.scrollDuration = 2;
|
||||
self.titleLabel.marqueeType = MLLeftRight;
|
||||
self.titleLabel.textColor = QXConfig.textColor;
|
||||
self.titleLabel.textColor = QXConfig.themeColor;
|
||||
self.titleLabel.font = [UIFont systemFontOfSize:14];
|
||||
[self.contentView addSubview:self.titleLabel];
|
||||
[self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.bottom.equalTo(self);
|
||||
make.left.equalTo(self.noticeImageView.mas_right).offset(8);
|
||||
make.left.mas_equalTo(ScaleWidth(52));
|
||||
make.right.equalTo(self.gotoRoomImageView.mas_left).offset(-8);
|
||||
}];
|
||||
}
|
||||
|
||||
@@ -33,6 +33,31 @@
|
||||
<constraint firstAttribute="width" constant="66" id="ljY-RT-6T7"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qsd-Ig-Nmi">
|
||||
<rect key="frame" x="8" y="8" width="28" height="14"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="T17-NM-Dxi">
|
||||
<rect key="frame" x="7.6666666666666661" y="2" width="12.999999999999998" height="10"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="10" id="Jz4-mP-9ub"/>
|
||||
<constraint firstAttribute="width" constant="13" id="bFQ-Sn-QsD"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<constraints>
|
||||
<constraint firstItem="T17-NM-Dxi" firstAttribute="centerY" secondItem="qsd-Ig-Nmi" secondAttribute="centerY" id="P0b-UN-AKa"/>
|
||||
<constraint firstAttribute="width" constant="28" id="cYa-LN-pr8"/>
|
||||
<constraint firstItem="T17-NM-Dxi" firstAttribute="centerX" secondItem="qsd-Ig-Nmi" secondAttribute="centerX" id="gQb-yk-Hae"/>
|
||||
<constraint firstAttribute="height" constant="14" id="uNt-1H-CWh"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="boolean" keyPath="layer.masksToBounds" value="YES"/>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
|
||||
<integer key="value" value="7"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="raq-XK-qhh">
|
||||
<rect key="frame" x="0.0" y="0.0" width="294" height="284"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
@@ -51,46 +76,11 @@
|
||||
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qsd-Ig-Nmi">
|
||||
<rect key="frame" x="12" y="258" width="28" height="14"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="T17-NM-Dxi">
|
||||
<rect key="frame" x="7.6666666666666679" y="2" width="13" height="10"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="10" id="Jz4-mP-9ub"/>
|
||||
<constraint firstAttribute="width" constant="13" id="bFQ-Sn-QsD"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
</subviews>
|
||||
<viewLayoutGuide key="safeArea" id="aVk-wF-KeM"/>
|
||||
<color key="backgroundColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<constraints>
|
||||
<constraint firstItem="T17-NM-Dxi" firstAttribute="centerX" secondItem="qsd-Ig-Nmi" secondAttribute="centerX" id="1hF-Jg-jvh"/>
|
||||
<constraint firstAttribute="width" constant="28" id="PWa-Xg-JLt"/>
|
||||
<constraint firstItem="T17-NM-Dxi" firstAttribute="centerY" secondItem="qsd-Ig-Nmi" secondAttribute="centerY" id="VQd-l3-nt3"/>
|
||||
<constraint firstAttribute="height" constant="14" id="suT-YR-dzr"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="boolean" keyPath="layer.masksToBounds" value="YES"/>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
|
||||
<integer key="value" value="7"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="V8F-du-Rah">
|
||||
<rect key="frame" x="12" y="232" width="31" height="18"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="18" id="BJy-ur-bLw"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="12"/>
|
||||
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="FdH-8c-jAP">
|
||||
<rect key="frame" x="207" y="254" width="75" height="22"/>
|
||||
<rect key="frame" x="240.33333333333334" y="254" width="41.666666666666657" height="22"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="BSc-rv-bf4">
|
||||
<rect key="frame" x="26" y="4.0000000000000009" width="41" height="14.333333333333336"/>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="BSc-rv-bf4">
|
||||
<rect key="frame" x="25.999999999999972" y="4.0000000000000009" width="7.6666666666666643" height="14.333333333333336"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="12"/>
|
||||
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
@@ -103,13 +93,12 @@
|
||||
</constraints>
|
||||
</imageView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<constraints>
|
||||
<constraint firstItem="BSc-rv-bf4" firstAttribute="leading" secondItem="NbC-hm-dDF" secondAttribute="trailing" constant="5" id="1TS-Nb-vk6"/>
|
||||
<constraint firstItem="NbC-hm-dDF" firstAttribute="leading" secondItem="FdH-8c-jAP" secondAttribute="leading" constant="8" id="4i4-XP-rtz"/>
|
||||
<constraint firstItem="NbC-hm-dDF" firstAttribute="centerY" secondItem="FdH-8c-jAP" secondAttribute="centerY" id="BV7-rF-E1Y"/>
|
||||
<constraint firstItem="BSc-rv-bf4" firstAttribute="centerY" secondItem="FdH-8c-jAP" secondAttribute="centerY" id="FZY-q3-vZ5"/>
|
||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="75" id="OI1-Rh-zJL"/>
|
||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="30" id="OI1-Rh-zJL"/>
|
||||
<constraint firstAttribute="height" constant="22" id="oWJ-kZ-B8e"/>
|
||||
<constraint firstAttribute="trailing" secondItem="BSc-rv-bf4" secondAttribute="trailing" constant="8" id="wk2-Xp-c2N"/>
|
||||
</constraints>
|
||||
@@ -120,28 +109,34 @@
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="V8F-du-Rah">
|
||||
<rect key="frame" x="8" y="258" width="31" height="14.333333333333314"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="12"/>
|
||||
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
</view>
|
||||
<viewLayoutGuide key="safeArea" id="SEy-5g-ep8"/>
|
||||
<constraints>
|
||||
<constraint firstItem="V8F-du-Rah" firstAttribute="centerY" secondItem="FdH-8c-jAP" secondAttribute="centerY" id="1Yd-6L-A2k"/>
|
||||
<constraint firstItem="074-Lr-sTa" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="12" id="3jT-jw-g2s"/>
|
||||
<constraint firstItem="raq-XK-qhh" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="65M-Vz-wVN"/>
|
||||
<constraint firstItem="074-Lr-sTa" firstAttribute="top" secondItem="V8F-du-Rah" secondAttribute="bottom" constant="6" id="BXi-Dl-VEW"/>
|
||||
<constraint firstItem="GYb-S9-FB8" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="Ejx-IG-t0a"/>
|
||||
<constraint firstItem="qsd-Ig-Nmi" firstAttribute="centerY" secondItem="074-Lr-sTa" secondAttribute="centerY" id="HaA-HN-SwS"/>
|
||||
<constraint firstItem="nPz-Ym-vpk" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="IlJ-YP-mXS"/>
|
||||
<constraint firstItem="qsd-Ig-Nmi" firstAttribute="leading" secondItem="V8F-du-Rah" secondAttribute="leading" id="KWW-LZ-X3E"/>
|
||||
<constraint firstItem="V8F-du-Rah" firstAttribute="leading" secondItem="074-Lr-sTa" secondAttribute="leading" id="KcI-CR-utf"/>
|
||||
<constraint firstItem="qsd-Ig-Nmi" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="8" id="O5K-MQ-58N"/>
|
||||
<constraint firstItem="FdH-8c-jAP" firstAttribute="centerY" secondItem="074-Lr-sTa" secondAttribute="centerY" id="SJP-Iu-Agm"/>
|
||||
<constraint firstAttribute="trailing" secondItem="raq-XK-qhh" secondAttribute="trailing" id="Sr2-8l-I7Z"/>
|
||||
<constraint firstAttribute="trailing" secondItem="FdH-8c-jAP" secondAttribute="trailing" constant="12" id="Vg4-Bv-qiW"/>
|
||||
<constraint firstItem="nPz-Ym-vpk" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="WJN-ti-QhO"/>
|
||||
<constraint firstAttribute="bottom" secondItem="nPz-Ym-vpk" secondAttribute="bottom" id="aif-M8-0Jh"/>
|
||||
<constraint firstAttribute="bottom" secondItem="raq-XK-qhh" secondAttribute="bottom" id="eE2-ef-bWE"/>
|
||||
<constraint firstItem="qsd-Ig-Nmi" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" constant="8" id="gwT-Kf-zHQ"/>
|
||||
<constraint firstAttribute="trailing" secondItem="GYb-S9-FB8" secondAttribute="trailing" id="mDi-oS-hhJ"/>
|
||||
<constraint firstAttribute="trailing" secondItem="nPz-Ym-vpk" secondAttribute="trailing" id="nMO-wi-Ic7"/>
|
||||
<constraint firstItem="raq-XK-qhh" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="qAp-bv-ObA"/>
|
||||
<constraint firstAttribute="bottom" secondItem="074-Lr-sTa" secondAttribute="bottom" constant="10" id="wAO-bU-aoJ"/>
|
||||
<constraint firstItem="V8F-du-Rah" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="8" id="y0G-cJ-lg2"/>
|
||||
</constraints>
|
||||
<size key="customSize" width="294" height="284"/>
|
||||
<connections>
|
||||
|
||||
@@ -19,7 +19,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
|
||||
@property (nonatomic,strong)UIView *roomPeopleBgView;
|
||||
@property (nonatomic,strong)UIImageView *roomPeopleBgImageView;
|
||||
//@property (nonatomic,strong)UIImageView *roomPeopleBgImageView;
|
||||
@property (nonatomic,strong)UIImageView *firstHeaderImageView;
|
||||
@property (nonatomic,strong)UIImageView *secondHeaderImageView;
|
||||
@property (nonatomic,strong)UIImageView *thirdHeaderImageView;
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#import "QXHomeTopCell.h"
|
||||
@interface QXHomeTopCell()
|
||||
@property(nonatomic,strong)NSMutableArray *imgs;
|
||||
@property(nonatomic,strong)UIImageView *peopleIconView;
|
||||
//
|
||||
@end
|
||||
@implementation QXHomeTopCell
|
||||
|
||||
@@ -27,14 +29,15 @@
|
||||
[self addSubview:self.roomCoverImageView];
|
||||
|
||||
|
||||
self.disPlayMaskView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH/3, 91)];
|
||||
self.disPlayMaskView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 180, 40)];
|
||||
[self.disPlayMaskView setTopToBottomGradientBackgroundWithColors:@[[UIColor colorWithHexString:@"#00000000"],[UIColor colorWithHexString:@"#00000096"]] frame:self.disPlayMaskView.bounds];
|
||||
[self.disPlayMaskView addRoundedCornersWithRadius:7];
|
||||
[self addSubview:self.disPlayMaskView];
|
||||
|
||||
|
||||
self.titleLabel = [[UILabel alloc] init];
|
||||
self.titleLabel.textColor = RGB16(0x333333);
|
||||
self.titleLabel.textColor = RGB16A(0xF1ECFF, 0.85);
|
||||
self.titleLabel.textAlignment = NSTextAlignmentCenter;
|
||||
self.titleLabel.font = [UIFont systemFontOfSize:12];
|
||||
[self addSubview:self.titleLabel];
|
||||
|
||||
@@ -51,9 +54,9 @@
|
||||
self.roomPeopleBgView = [[UIView alloc] init];
|
||||
[self.roomPeopleBgView addRoundedCornersWithRadius:7];
|
||||
[self addSubview:self.roomPeopleBgView];
|
||||
self.roomPeopleBgImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"home_top_room_people_bg"]];
|
||||
self.roomPeopleBgImageView.contentMode = UIViewContentModeScaleToFill;
|
||||
[self.roomPeopleBgView addSubview:self.roomPeopleBgImageView];
|
||||
// self.roomPeopleBgImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"home_top_room_people_bg"]];
|
||||
// self.roomPeopleBgImageView.contentMode = UIViewContentModeScaleToFill;
|
||||
// [self.roomPeopleBgView addSubview:self.roomPeopleBgImageView];
|
||||
self.firstHeaderImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"user_header_placehoulder"]];
|
||||
self.firstHeaderImageView.backgroundColor = [UIColor whiteColor];
|
||||
[self.firstHeaderImageView addRoundedCornersWithRadius:8];
|
||||
@@ -76,12 +79,16 @@
|
||||
self.countLabel.textColor = UIColor.whiteColor;
|
||||
[self.roomPeopleBgView addSubview:self.countLabel];
|
||||
|
||||
self.peopleIconView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"room_people"]];
|
||||
[self.roomPeopleBgView addSubview:self.peopleIconView];
|
||||
|
||||
[self.roomCoverImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.top.right.equalTo(self);
|
||||
make.height.mas_equalTo(91);
|
||||
make.height.mas_equalTo(135);
|
||||
}];
|
||||
[self.disPlayMaskView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.top.right.bottom.equalTo(self.roomCoverImageView);
|
||||
make.left.right.bottom.equalTo(self.roomCoverImageView);
|
||||
make.height.mas_equalTo(40);
|
||||
}];
|
||||
[self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.equalTo(self);
|
||||
@@ -96,34 +103,43 @@
|
||||
make.centerX.centerY.equalTo(self.animateBgView);
|
||||
}];
|
||||
[self.roomPeopleBgView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.right.mas_equalTo(0);
|
||||
make.size.mas_equalTo(CGSizeMake(93, 24));
|
||||
make.bottom.equalTo(self.roomCoverImageView.mas_bottom);
|
||||
make.left.mas_equalTo(8);
|
||||
// make.size.mas_equalTo(CGSizeMake(93, 24));
|
||||
make.height.mas_equalTo(24);
|
||||
make.right.mas_equalTo(-8);
|
||||
make.bottom.equalTo(self.roomCoverImageView.mas_bottom).offset(-8);
|
||||
}];
|
||||
[self.roomPeopleBgImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.bottom.right.left.equalTo(self.roomPeopleBgView);
|
||||
}];
|
||||
[self.countLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.right.mas_equalTo(-5);
|
||||
make.width.mas_equalTo(32);
|
||||
make.height.mas_equalTo(12);
|
||||
make.centerY.equalTo(self.roomPeopleBgView);
|
||||
}];
|
||||
[self.thirdHeaderImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
// [self.roomPeopleBgImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
// make.top.bottom.right.left.equalTo(self.roomPeopleBgView);
|
||||
// }];
|
||||
[self.firstHeaderImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.size.mas_equalTo(CGSizeMake(16, 16));
|
||||
make.right.equalTo(self.countLabel.mas_left).offset(-5);
|
||||
make.centerY.equalTo(self.roomPeopleBgView);
|
||||
make.left.equalTo(self.roomPeopleBgView.mas_left);
|
||||
make.bottom.equalTo(self.roomPeopleBgView);
|
||||
}];
|
||||
[self.secondHeaderImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.size.mas_equalTo(CGSizeMake(16, 16));
|
||||
make.right.equalTo(self.thirdHeaderImageView.mas_left).offset(6);
|
||||
make.centerY.equalTo(self.roomPeopleBgView);
|
||||
make.left.equalTo(self.firstHeaderImageView.mas_right).offset(-6);
|
||||
make.centerY.equalTo(self.firstHeaderImageView);
|
||||
}];
|
||||
[self.firstHeaderImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
[self.thirdHeaderImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.size.mas_equalTo(CGSizeMake(16, 16));
|
||||
make.right.equalTo(self.secondHeaderImageView.mas_left).offset(6);
|
||||
make.centerY.equalTo(self.roomPeopleBgView);
|
||||
make.left.equalTo(self.secondHeaderImageView.mas_right).offset(-6);
|
||||
make.centerY.equalTo(self.firstHeaderImageView);
|
||||
}];
|
||||
[self.countLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.right.equalTo(self.roomPeopleBgView);
|
||||
make.width.mas_equalTo(32);
|
||||
make.height.mas_equalTo(12);
|
||||
make.centerY.equalTo(self.firstHeaderImageView);
|
||||
}];
|
||||
[self.peopleIconView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.right.equalTo(self.countLabel.mas_left).offset(-2);
|
||||
make.centerY.equalTo(self.firstHeaderImageView);
|
||||
make.width.height.mas_equalTo(14);
|
||||
}];
|
||||
|
||||
|
||||
self.countLabel.text = @"23人";
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="XUB-Y8-XcZ">
|
||||
<rect key="frame" x="16.000000000000007" y="30" width="126.66666666666669" height="190"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="rank_first_bg" translatesAutoresizingMaskIntoConstraints="NO" id="Udd-CZ-76S">
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="rank_second_bg" translatesAutoresizingMaskIntoConstraints="NO" id="Udd-CZ-76S">
|
||||
<rect key="frame" x="0.0" y="30" width="126.66666666666667" height="150"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="150" id="OpL-6e-PQF"/>
|
||||
@@ -108,7 +108,7 @@
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YTz-cQ-cnc">
|
||||
<rect key="frame" x="155.66666666666666" y="10" width="126.66666666666666" height="190"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="rank_second_bg" translatesAutoresizingMaskIntoConstraints="NO" id="OYC-81-j70">
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="rank_first_bg" translatesAutoresizingMaskIntoConstraints="NO" id="OYC-81-j70">
|
||||
<rect key="frame" x="0.0" y="30" width="126.66666666666667" height="150"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="150" id="20d-Os-Gh8"/>
|
||||
|
||||
@@ -100,7 +100,8 @@
|
||||
{
|
||||
self = [super init];
|
||||
if (self) {
|
||||
[self setTitleColor:QXConfig.btnTextColor forState:(UIControlStateNormal)];
|
||||
[self setTitleColor:QXConfig.btnTextColor forState:(UIControlStateSelected)];
|
||||
[self setTitleColor:QXConfig.textColor forState:(UIControlStateNormal)];
|
||||
self.titleLabel.font = [UIFont boldSystemFontOfSize:14];
|
||||
self.backgroundColor = RGB16(0xF6F6F6);
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
self.contentView.layer.masksToBounds = YES;
|
||||
self.contentView.layer.borderColor = [UIColor blackColor].CGColor;
|
||||
self.contentView.layer.borderWidth = 0;
|
||||
_titleLabel.textColor = RGB16(0x006B4C);
|
||||
_titleLabel.textColor = QXConfig.themeColor;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@@ -78,12 +78,12 @@
|
||||
return;
|
||||
}
|
||||
if (userTag.isSelected) {
|
||||
self.contentView.backgroundColor = RGB16(0xBBFFEB);
|
||||
self.contentView.backgroundColor = RGB16A(0x6C49E4, 0.1);
|
||||
self.contentView.layer.cornerRadius = 11;
|
||||
self.contentView.layer.masksToBounds = YES;
|
||||
self.contentView.layer.borderColor = [UIColor blackColor].CGColor;
|
||||
self.contentView.layer.borderWidth = 0;
|
||||
_titleLabel.textColor = RGB16(0x006B4C);
|
||||
_titleLabel.textColor = QXConfig.themeColor;
|
||||
}else{
|
||||
self.contentView.backgroundColor = RGB16(0xF3F3F3);
|
||||
self.contentView.layer.cornerRadius = 11;
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
self.bgView.layer.borderColor = RGB16(0x333333).CGColor;
|
||||
[self addSubview:self.bgView];
|
||||
|
||||
self.searchIcon = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"home_search"]];
|
||||
self.searchIcon = [[UIImageView alloc] initWithImage:[[UIImage imageNamed:@"home_search"] imageByTintColor:RGB16(0x333333)]];
|
||||
[self.bgView addSubview:self.searchIcon];
|
||||
|
||||
self.textField = [[UITextField alloc] init];
|
||||
|
||||
Reference in New Issue
Block a user