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;