修改推送图标
This commit is contained in:
@@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
@interface DSAvatarCollectionViewCell : UICollectionViewCell
|
@interface DSAvatarCollectionViewCell : UICollectionViewCell
|
||||||
|
|
||||||
@property (weak, nonatomic) IBOutlet UIImageView *avatarImageView;
|
@property (weak, nonatomic) IBOutlet UIImageView *avatarImageView;
|
||||||
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgWidth;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
- (void)awakeFromNib {
|
- (void)awakeFromNib {
|
||||||
[super awakeFromNib];
|
[super awakeFromNib];
|
||||||
|
|
||||||
self.avatarImageView.layer.cornerRadius = 30.f;
|
self.avatarImageView.layer.cornerRadius = 25.f;
|
||||||
self.avatarImageView.layer.masksToBounds = YES;
|
self.avatarImageView.layer.masksToBounds = YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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"/>
|
<device id="retina6_1" orientation="portrait" appearance="light"/>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="iOS"/>
|
<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"/>
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<objects>
|
<objects>
|
||||||
@@ -18,17 +18,20 @@
|
|||||||
<subviews>
|
<subviews>
|
||||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="menu" translatesAutoresizingMaskIntoConstraints="NO" id="RqP-X3-yqZ">
|
<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"/>
|
<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>
|
</imageView>
|
||||||
</subviews>
|
</subviews>
|
||||||
</view>
|
</view>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstItem="RqP-X3-yqZ" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" id="5mY-C8-5lu"/>
|
<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="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>
|
</constraints>
|
||||||
<connections>
|
<connections>
|
||||||
<outlet property="avatarImageView" destination="RqP-X3-yqZ" id="Ltx-1Y-jla"/>
|
<outlet property="avatarImageView" destination="RqP-X3-yqZ" id="Ltx-1Y-jla"/>
|
||||||
|
<outlet property="imgWidth" destination="JaY-Do-scg" id="cTt-Az-yO1"/>
|
||||||
</connections>
|
</connections>
|
||||||
<point key="canvasLocation" x="137.68115942028987" y="125.89285714285714"/>
|
<point key="canvasLocation" x="137.68115942028987" y="125.89285714285714"/>
|
||||||
</collectionViewCell>
|
</collectionViewCell>
|
||||||
|
|||||||
@@ -108,6 +108,9 @@ static NSString *identifier = @"AvatarCollectionViewCell";
|
|||||||
cell.avatarImageView.image = [UIImage imageNamed:@"facebook"];
|
cell.avatarImageView.image = [UIImage imageNamed:@"facebook"];
|
||||||
}else if (type == DSWebMenuNotiType) {
|
}else if (type == DSWebMenuNotiType) {
|
||||||
cell.avatarImageView.image = [UIImage imageNamed:@"noti"];
|
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;
|
cell.avatarImageView.contentMode = UIViewContentModeScaleAspectFit;
|
||||||
|
|||||||
Reference in New Issue
Block a user