相亲厅播放音乐入口位置调整
This commit is contained in:
@@ -867,12 +867,21 @@
|
||||
if (!self.musicEnterButton.superview) {
|
||||
[self addSubview:self.musicEnterButton];
|
||||
CGFloat topOffY = self.delegate.getRoomInfo.type == RoomType_Anchor || self.delegate.getRoomInfo.isPermitRoom == PermitRoomType_Licnese ? (kNavigationHeight+ 4 + 22 + 18) : (kNavigationHeight+ 4);
|
||||
[self.musicEnterButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.right.mas_equalTo(0).offset(8);
|
||||
make.top.mas_equalTo(topOffY);
|
||||
make.width.mas_equalTo(79);
|
||||
make.height.mas_equalTo(22);
|
||||
}];
|
||||
if (self.delegate.getRoomInfo.roomModeType == RoomModeType_Open_Blind) {//相亲厅播放音乐
|
||||
[self.musicEnterButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.right.mas_equalTo(self.hourRankEntranceView.mas_left).offset(-8);
|
||||
make.centerY.mas_equalTo(self.contributeEnterView);
|
||||
make.width.mas_equalTo(79);
|
||||
make.height.mas_equalTo(22);
|
||||
}];
|
||||
} else {
|
||||
[self.musicEnterButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.right.mas_equalTo(0).offset(8);
|
||||
make.top.mas_equalTo(topOffY);
|
||||
make.width.mas_equalTo(79);
|
||||
make.height.mas_equalTo(22);
|
||||
}];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
[[RtcManager instance] changePlayState:BackMusicPlayState_Stop];
|
||||
@@ -1500,12 +1509,21 @@
|
||||
if (!self.musicEnterButton.superview) {
|
||||
[self addSubview:self.musicEnterButton];
|
||||
CGFloat topOffY = (self.delegate.getRoomInfo.type == RoomType_Anchor || self.delegate.getRoomInfo.isPermitRoom == PermitRoomType_Licnese) ? (kNavigationHeight+ 4 + 22 + 18) : (kNavigationHeight+ 4);
|
||||
[self.musicEnterButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.right.mas_equalTo(0).offset(8);
|
||||
make.top.mas_equalTo(topOffY);
|
||||
make.width.mas_equalTo(79);
|
||||
make.height.mas_equalTo(22);
|
||||
}];
|
||||
if (self.delegate.getRoomInfo.roomModeType == RoomModeType_Open_Blind) {//相亲厅播放音乐
|
||||
[self.musicEnterButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.right.mas_equalTo(self.hourRankEntranceView.mas_left).offset(-8);
|
||||
make.centerY.mas_equalTo(self.contributeEnterView);
|
||||
make.width.mas_equalTo(79);
|
||||
make.height.mas_equalTo(22);
|
||||
}];
|
||||
} else {
|
||||
[self.musicEnterButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.right.mas_equalTo(0).offset(8);
|
||||
make.top.mas_equalTo(topOffY);
|
||||
make.width.mas_equalTo(79);
|
||||
make.height.mas_equalTo(22);
|
||||
}];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user