temp save
This commit is contained in:
@@ -156,9 +156,6 @@ return view;\
|
||||
}
|
||||
|
||||
#pragma mark - Private Method
|
||||
|
||||
|
||||
|
||||
- (void)setupUI {
|
||||
self.backgroundColor = [UIColor clearColor];
|
||||
|
||||
@@ -189,6 +186,8 @@ return view;\
|
||||
[self setupCustomDesc];
|
||||
|
||||
[self setupRelationshipArea];
|
||||
|
||||
[self setupCPArea];
|
||||
}
|
||||
|
||||
- (void)setupAlbumScrollView {
|
||||
@@ -404,6 +403,28 @@ return view;\
|
||||
}
|
||||
|
||||
- (void)setupCPArea {
|
||||
UIView *greenLine = [[UIView alloc] init];
|
||||
greenLine.layer.backgroundColor = UIColorFromRGB(0x04D5C6).CGColor;
|
||||
greenLine.layer.cornerRadius = 2;
|
||||
|
||||
[self.userInfoView addSubview:greenLine];
|
||||
[greenLine mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.leading.mas_equalTo(kGetScaleWidth(15));
|
||||
make.top.mas_equalTo(self.signatureLabel.mas_bottom).offset(57);
|
||||
make.size.mas_equalTo(CGSizeMake(3, 15));
|
||||
}];
|
||||
|
||||
UILabel *titleLabel = [UILabel labelInitWithText:@"CP" font:kFontSemibold(16) textColor:[UIColor whiteColor]];
|
||||
[self.userInfoView addSubview:titleLabel];
|
||||
[titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.leading.mas_equalTo(greenLine.mas_trailing).offset(7);
|
||||
make.centerY.mas_equalTo(greenLine);
|
||||
}];
|
||||
|
||||
UIButton *cpListButton = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
[cpListButton setImage:kImage(@"") forState:UIControlStateNormal];
|
||||
[cpListButton addTarget:self action:@selector(clickCPListButton) forControlEvents:UIControlEventTouchUpInside];
|
||||
[];
|
||||
|
||||
}
|
||||
|
||||
@@ -463,6 +484,10 @@ return view;\
|
||||
[browser show];
|
||||
}
|
||||
|
||||
- (void)clickCPListButton {
|
||||
|
||||
}
|
||||
|
||||
- (void)onlineButtonAction:(UIButton *)sender {
|
||||
if (self.delegate && [self.delegate respondsToSelector:@selector(xPMineUserInfoHeaderView:didClickGoToRoom:)]) {
|
||||
[self.delegate xPMineUserInfoHeaderView:self didClickGoToRoom:self.roomUid];
|
||||
|
Reference in New Issue
Block a user