Commit fe02e289 authored by IOS-张 博's avatar IOS-张 博

修改启动页图片

parent ddf6a270
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15705" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<device id="retina6_5" orientation="portrait" appearance="light"/>
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15706"/>
......@@ -12,34 +12,34 @@
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="S2z-nb-pVj"/>
<viewControllerLayoutGuide type="bottom" id="T3a-kI-dUO"/>
<viewControllerLayoutGuide type="top" id="jq9-Rd-3rN"/>
<viewControllerLayoutGuide type="bottom" id="9mu-44-kTl"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="launchscreen_image.png" translatesAutoresizingMaskIntoConstraints="NO" id="Ant-6O-GGP">
<rect key="frame" x="113" y="764" width="188" height="64"/>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="screen_icon.png" translatesAutoresizingMaskIntoConstraints="NO" id="pXO-8U-iLB">
<rect key="frame" x="113" y="748" width="188" height="64"/>
<constraints>
<constraint firstAttribute="width" constant="188" id="MDJ-dS-iYD"/>
<constraint firstAttribute="height" constant="64" id="fuE-qm-enU"/>
<constraint firstAttribute="height" constant="64" id="fSI-65-tlf"/>
<constraint firstAttribute="width" constant="188" id="uYZ-HH-Vu6"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="Ant-6O-GGP" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="Mtj-uv-fBK"/>
<constraint firstItem="T3a-kI-dUO" firstAttribute="top" secondItem="Ant-6O-GGP" secondAttribute="bottom" constant="34" id="Vmg-9g-2y3"/>
<constraint firstItem="9mu-44-kTl" firstAttribute="top" secondItem="pXO-8U-iLB" secondAttribute="bottom" constant="50" id="Npo-GN-h0k"/>
<constraint firstItem="pXO-8U-iLB" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="cWR-6G-u4h"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
<point key="canvasLocation" x="52.173913043478265" y="375"/>
</scene>
</scenes>
<resources>
<image name="launchscreen_image.png" width="188" height="64"/>
<image name="screen_icon.png" width="188" height="64"/>
</resources>
</document>
......@@ -28,13 +28,15 @@
QGGradientView * gradientView = [[QGGradientView alloc] init];
gradientView.gradientLayer.colors = [UIColor gradientColorsE9B176ToF2CD8B:0.4];
[self.contentView addSubview:gradientView];
gradientView.layer.cornerRadius = 25/2.0;
gradientView.clipsToBounds = YES;
[gradientView mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.mas_offset(0);
make.left.right.inset(20);
make.height.mas_equalTo(25);
}];
gradientView.gradientLayer.cornerRadius = 25/2.0;
//消息通知
self.notificationView = [[QGMarqueeView alloc] init];
......
......@@ -38,7 +38,6 @@
//渐变色
QGGradientView * gradientView = [[QGGradientView alloc] init];
gradientView.layer.cornerRadius = 6;
gradientView.gradientLayer.cornerRadius = 6;
gradientView.clipsToBounds = YES;
[self.contentView addSubview:gradientView];
[gradientView mas_makeConstraints:^(MASConstraintMaker *make) {
......
......@@ -90,8 +90,11 @@
- (void)layoutSubviews
{
[super layoutSubviews];
//设置圆角和角度
[self setRadius:self.radius corner:self.corner];
//设置圆角和角度 只有设置了圆角才会走这里
if (self.radius > 0) {
[self setRadius:self.radius corner:self.corner];
}
}
@end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment