chore: Pod更新、AppIcon替换、文件清理及配置调整
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
2bcac71a19
commit
f597c63ae0
+20
-13
@@ -25,39 +25,46 @@
|
||||
{
|
||||
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
|
||||
if (self) {
|
||||
self.container.layer.cornerRadius = 10;
|
||||
self.container.layer.cornerRadius = 8;
|
||||
self.container.layer.masksToBounds = YES;
|
||||
self.container.backgroundColor = UIColor.whiteColor;
|
||||
|
||||
self.myTextLabel = [[UILabel alloc] init];
|
||||
self.myTextLabel.textAlignment = NSTextAlignmentLeft;
|
||||
self.myTextLabel.font = [UIFont systemFontOfSize:14];
|
||||
self.myTextLabel.backgroundColor = UIColor.whiteColor;
|
||||
self.myTextLabel.numberOfLines = 0;
|
||||
[self.container addSubview:self.myTextLabel];
|
||||
self.mapImage = [[UIImageView alloc] init];
|
||||
[self.container addSubview:self.mapImage];
|
||||
|
||||
|
||||
|
||||
self.mapImage = [[UIImageView alloc] init];
|
||||
[self.container addSubview:self.mapImage];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
// 根据 cellData 绘制 cell
|
||||
- (void)fillWithData:(MapMessageCustomCellData *)data;
|
||||
{
|
||||
[super fillWithData:data];
|
||||
self.myTextLabel.text = @" 位置";
|
||||
self.bubbleView.image = nil;
|
||||
self.myTextLabel.text = data.text.length > 0 ? data.text : @"我的位置";
|
||||
[self.mapImage sd_setImageWithURL:[NSURL URLWithString:data.MapPictureImg] placeholderImage:nil];
|
||||
|
||||
[self setNeedsLayout];
|
||||
}
|
||||
// 设置控件坐标
|
||||
|
||||
- (void)layoutSubviews
|
||||
{
|
||||
[super layoutSubviews];
|
||||
|
||||
self.myTextLabel.mm_right(0).mm_top(0).mm_left(0).mm_height(30).mm_width(245);
|
||||
self.mapImage.mm_top(self.myTextLabel.mm_y + 30 ).mm_width(245).mm_height(140);
|
||||
CGFloat containerW = self.container.bounds.size.width;
|
||||
CGFloat containerH = self.container.bounds.size.height;
|
||||
CGFloat padding = 10;
|
||||
CGFloat textWidth = containerW - padding * 2;
|
||||
CGSize textSize = [self.myTextLabel sizeThatFits:CGSizeMake(textWidth, CGFLOAT_MAX)];
|
||||
CGFloat textHeight = textSize.height + 12;
|
||||
|
||||
|
||||
self.myTextLabel.mm_left(padding).mm_top(6).mm_width(textWidth).mm_height(textHeight);
|
||||
|
||||
CGFloat mapTop = self.myTextLabel.mm_y + textHeight;
|
||||
self.mapImage.mm_left(0).mm_top(mapTop).mm_width(containerW).mm_height(containerH - mapTop);
|
||||
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user