From dd5cf8ad36d6b00288e6dbd63b6fa5a2b1d76aa8 Mon Sep 17 00:00:00 2001 From: QuFY <171264797@qq.com> Date: Fri, 7 Feb 2025 17:44:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A8=E9=80=81=E5=9B=BE?= =?UTF-8?q?=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShenQi/WMDragView/DSAvatarCollectionViewCell.h | 1 + ShenQi/WMDragView/DSAvatarCollectionViewCell.m | 2 +- ShenQi/WMDragView/DSAvatarCollectionViewCell.xib | 11 +++++++---- ShenQi/WMDragView/DSWebMenuCollectionView.m | 3 +++ 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ShenQi/WMDragView/DSAvatarCollectionViewCell.h b/ShenQi/WMDragView/DSAvatarCollectionViewCell.h index f2cfec4..cc923e8 100644 --- a/ShenQi/WMDragView/DSAvatarCollectionViewCell.h +++ b/ShenQi/WMDragView/DSAvatarCollectionViewCell.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN @interface DSAvatarCollectionViewCell : UICollectionViewCell @property (weak, nonatomic) IBOutlet UIImageView *avatarImageView; +@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgWidth; @end diff --git a/ShenQi/WMDragView/DSAvatarCollectionViewCell.m b/ShenQi/WMDragView/DSAvatarCollectionViewCell.m index 7b1d8a9..794eb9a 100644 --- a/ShenQi/WMDragView/DSAvatarCollectionViewCell.m +++ b/ShenQi/WMDragView/DSAvatarCollectionViewCell.m @@ -11,7 +11,7 @@ - (void)awakeFromNib { [super awakeFromNib]; - self.avatarImageView.layer.cornerRadius = 30.f; + self.avatarImageView.layer.cornerRadius = 25.f; self.avatarImageView.layer.masksToBounds = YES; } diff --git a/ShenQi/WMDragView/DSAvatarCollectionViewCell.xib b/ShenQi/WMDragView/DSAvatarCollectionViewCell.xib index 9572567..979525e 100644 --- a/ShenQi/WMDragView/DSAvatarCollectionViewCell.xib +++ b/ShenQi/WMDragView/DSAvatarCollectionViewCell.xib @@ -1,9 +1,9 @@ - + - + @@ -18,17 +18,20 @@ + + + + - - + diff --git a/ShenQi/WMDragView/DSWebMenuCollectionView.m b/ShenQi/WMDragView/DSWebMenuCollectionView.m index d60d4f6..6681073 100644 --- a/ShenQi/WMDragView/DSWebMenuCollectionView.m +++ b/ShenQi/WMDragView/DSWebMenuCollectionView.m @@ -108,6 +108,9 @@ static NSString *identifier = @"AvatarCollectionViewCell"; cell.avatarImageView.image = [UIImage imageNamed:@"facebook"]; }else if (type == DSWebMenuNotiType) { cell.avatarImageView.image = [UIImage imageNamed:@"noti"]; + cell.imgWidth.constant = 40; + cell.avatarImageView.layer.cornerRadius = 20.f; + cell.avatarImageView.layer.masksToBounds = YES; } } cell.avatarImageView.contentMode = UIViewContentModeScaleAspectFit;