// // MTMsgMoreView.m // Jianbinglian // // Created by Simon on 2021/2/23. // Copyright © 2021 Simon. All rights reserved. // #import "MTMsgMoreView.h" @interface MTMsgMoreView () @property (weak, nonatomic) IBOutlet NSLayoutConstraint *topCons; @property (weak, nonatomic) IBOutlet UIView *bgView; @end @implementation MTMsgMoreView - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; self = [[[NSBundle mainBundle] loadNibNamed:@"MTMsgMoreView" owner:self options:nil] lastObject]; if (self) { self.frame = frame; [self setupViews]; } return self; } -(void)setupViews{ self.topCons.constant = kNumFrom375(44); [self layoutIfNeeded]; [self.bgView mt_yuanjiao:kNumFrom375(5)]; } - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ [self removeFromSuperview]; } @end