修改推送图标
This commit is contained in:
@@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@interface DSAvatarCollectionViewCell : UICollectionViewCell
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *avatarImageView;
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgWidth;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22155" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
||||
<device id="retina6_1" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22131"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
@@ -18,17 +18,20 @@
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="menu" translatesAutoresizingMaskIntoConstraints="NO" id="RqP-X3-yqZ">
|
||||
<rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" secondItem="RqP-X3-yqZ" secondAttribute="height" multiplier="1:1" id="GiB-UE-gJL"/>
|
||||
<constraint firstAttribute="width" constant="50" id="JaY-Do-scg"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
</subviews>
|
||||
</view>
|
||||
<constraints>
|
||||
<constraint firstItem="RqP-X3-yqZ" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" id="5mY-C8-5lu"/>
|
||||
<constraint firstItem="RqP-X3-yqZ" firstAttribute="centerY" secondItem="gTV-IL-0wX" secondAttribute="centerY" id="SJv-lH-lTa"/>
|
||||
<constraint firstItem="RqP-X3-yqZ" firstAttribute="height" secondItem="gTV-IL-0wX" secondAttribute="height" id="x5u-MZ-CFE"/>
|
||||
<constraint firstItem="RqP-X3-yqZ" firstAttribute="width" secondItem="gTV-IL-0wX" secondAttribute="width" id="yXf-Uz-mdk"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<outlet property="avatarImageView" destination="RqP-X3-yqZ" id="Ltx-1Y-jla"/>
|
||||
<outlet property="imgWidth" destination="JaY-Do-scg" id="cTt-Az-yO1"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="137.68115942028987" y="125.89285714285714"/>
|
||||
</collectionViewCell>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user