修复了房间活动板块无法显示全的问题
This commit is contained in:
@@ -25,6 +25,7 @@ isPhoneXSeries = [[UIApplication sharedApplication] delegate].window.safeAreaIns
|
||||
#define kNavigationHeight (kStatusBarHeight + 44)
|
||||
#define kTabBarHeight (iPhoneXSeries ? 49.0+34.0 : 49.0)
|
||||
#define kScreenScale ((CGFloat)KScreenWidth / (CGFloat)375)
|
||||
#define kScreenHeightScale ((CGFloat)KScreenHeight / (CGFloat)812)
|
||||
#define kHalfScreenHeight KScreenHeight * 0.65
|
||||
|
||||
#define kWeakify(o) try{}@finally{} __weak typeof(o) o##Weak = o;
|
||||
|
@@ -16,6 +16,7 @@
|
||||
#import "NetImageView.h"
|
||||
#import "TTPopup.h"
|
||||
#import "XCHUDTool.h"
|
||||
#import "XPMacro.h"
|
||||
///Model
|
||||
#import "UserInfoModel.h"
|
||||
#import "RoomInfoModel.h"
|
||||
@@ -87,24 +88,25 @@
|
||||
make.edges.mas_equalTo(self);
|
||||
}];
|
||||
|
||||
CGFloat itemWidth = KScreenHeight > 667 ? 65 : 55 * kScreenHeightScale;
|
||||
[self.cycleScrollView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.size.mas_equalTo(CGSizeMake(65, 65));
|
||||
make.size.mas_equalTo(CGSizeMake(itemWidth , itemWidth));
|
||||
}];
|
||||
|
||||
[self.sailingImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.size.mas_equalTo(CGSizeMake(65, 65));
|
||||
make.size.mas_equalTo(CGSizeMake(itemWidth, itemWidth));
|
||||
}];
|
||||
|
||||
[self.firstRechargeImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.size.mas_equalTo(CGSizeMake(65, 65));
|
||||
make.size.mas_equalTo(CGSizeMake(itemWidth, itemWidth));
|
||||
}];
|
||||
|
||||
[self.candyTreeImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.size.mas_equalTo(CGSizeMake(65, 65));
|
||||
make.size.mas_equalTo(CGSizeMake(itemWidth, itemWidth));
|
||||
}];
|
||||
|
||||
[self.joinDatingView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.height.mas_equalTo(35);
|
||||
make.height.mas_equalTo(35* kScreenHeightScale);
|
||||
}];
|
||||
|
||||
}
|
||||
|
@@ -355,7 +355,7 @@
|
||||
|
||||
- (void)xPRoomNewUserGreetView:(XPRoomNewUserGreetView *)view didClickCheckout:(UIButton *)sender {
|
||||
XPRoomHalfMessageView *halfMessageView = [[XPRoomHalfMessageView alloc] initWithFrame:CGRectMake(0, KScreenHeight, KScreenWidth, KScreenHeight)];
|
||||
[self addSubview:halfMessageView];
|
||||
[[UIApplication sharedApplication].delegate.window addSubview:halfMessageView];
|
||||
[UIView animateWithDuration:.35 animations:^{
|
||||
CGRect rect = halfMessageView.frame;
|
||||
rect.origin.y = 0;
|
||||
|
@@ -16,6 +16,7 @@
|
||||
#import "StatisticsServiceHelper.h"
|
||||
#import "Themecolor.h"
|
||||
#import "XPMacro.h"
|
||||
#import "XCCurrentVCStackManager.h"
|
||||
///Model
|
||||
#import "XPRoomMenuItem.h"
|
||||
#import "MicroQueueModel.h"
|
||||
@@ -125,7 +126,7 @@
|
||||
case XPRoomMenuItemType_Message:
|
||||
{
|
||||
XPRoomHalfMessageView *halfMessageView = [[XPRoomHalfMessageView alloc] initWithFrame:CGRectMake(0, KScreenHeight, KScreenWidth, KScreenHeight)];
|
||||
[self.superview addSubview:halfMessageView];
|
||||
[[UIApplication sharedApplication].delegate.window addSubview:halfMessageView];
|
||||
[UIView animateWithDuration:.35 animations:^{
|
||||
CGRect rect = halfMessageView.frame;
|
||||
rect.origin.y = 0;
|
||||
@@ -415,7 +416,7 @@
|
||||
- (void)xPRoomMessageBubbleView:(XPRoomMessageBubbleView *)view didSelectSession:(NIMRecentSession *)session {
|
||||
XPRoomHalfMessageView *halfMessageView = [[XPRoomHalfMessageView alloc] initWithFrame:CGRectMake(0, KScreenHeight, KScreenWidth, KScreenHeight)];
|
||||
halfMessageView.chatUserId = session.session.sessionId;
|
||||
[self.superview addSubview:halfMessageView];
|
||||
[[UIApplication sharedApplication].delegate.window addSubview:halfMessageView];
|
||||
[UIView animateWithDuration:.35 animations:^{
|
||||
CGRect rect = halfMessageView.frame;
|
||||
rect.origin.y = 0;
|
||||
|
@@ -741,7 +741,7 @@
|
||||
[self dismissViewControllerAnimated:YES completion:^{
|
||||
XPRoomHalfMessageView *halfMessageView = [[XPRoomHalfMessageView alloc] initWithFrame:CGRectMake(0, KScreenHeight, KScreenWidth, KScreenHeight)];
|
||||
halfMessageView.chatUserId = self.cardInfo.uid;
|
||||
[[XCCurrentVCStackManager shareManager].currentNavigationController.view addSubview:halfMessageView];
|
||||
[[UIApplication sharedApplication].delegate.window addSubview:halfMessageView];
|
||||
[UIView animateWithDuration:.35 animations:^{
|
||||
CGRect rect = halfMessageView.frame;
|
||||
rect.origin.y = 0;
|
||||
|
Reference in New Issue
Block a user