Skip to content

Commit

Permalink
【ADD】'NSString+LYUnits'添加获取文件大小功能
Browse files Browse the repository at this point in the history
【ADD】'UIDevice+LYHardware'添加获取运营商功能
【ADD】‘LYHyperlinksButton’超链接按钮
  • Loading branch information
吴浪 committed Dec 12, 2018
1 parent 8c06960 commit 5fe4150
Show file tree
Hide file tree
Showing 21 changed files with 778 additions and 535 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@
### [0.2.0]
-【MDF】'NSString+LYURL'方法描述修改
-【ADD】URL拼接参数功能‘ly_stringURL:appendNotExistParams:’、‘ly_stringURL:appendParams:’
### [0.3.0]
-【ADD】'NSString+LYUnits'添加获取文件大小功能
-【ADD】'UIDevice+LYHardware'添加获取运营商功能
25 changes: 22 additions & 3 deletions Example/LYToolsKit/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="whP-gf-Uak">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="pQb-Qq-Bol">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand All @@ -22,10 +22,29 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</view>
<navigationItem key="navigationItem" id="6Fs-t2-38Q"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="tc2-Qw-aMS" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="305" y="433"/>
<point key="canvasLocation" x="1244" y="432.23388305847078"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="Uj0-Ag-U5y">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="pQb-Qq-Bol" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="Uaj-BU-uCe">
<rect key="frame" x="0.0" y="20" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
<connections>
<segue destination="whP-gf-Uak" kind="relationship" relationship="rootViewController" id="V5w-YR-es0"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="5aq-GM-hQb" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="304.80000000000001" y="432.23388305847078"/>
</scene>
</scenes>
</document>
6 changes: 6 additions & 0 deletions Example/LYToolsKit/Images.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "消息中心-系统-@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "消息中心-系统-@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions Example/LYToolsKit/Images.xcassets/照片.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "858893-z.jpg",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
15 changes: 14 additions & 1 deletion Example/LYToolsKit/LYViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

#import "LYViewController.h"
#import <LYToolsKit/LYToolsKit.h>

@interface LYViewController ()

Expand All @@ -17,7 +18,19 @@ @implementation LYViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
UIBarButtonItem *btn = [UIBarButtonItem ly_itemWithNormalImageName:@"消息中心-系统" highImageName:@"消息中心-系统" target:self action:@selector(btnClick)];
self.navigationItem.rightBarButtonItem = btn;

// Do any additional setup after loading the view, typically from a nib.
LYHyperlinksButton *btn1 = [LYHyperlinksButton ly_ViewWithColor:[UIColor redColor]];
[btn1 setTitle:@"啧啧啧" forState:UIControlStateNormal];
btn1.frame = CGRectMake(50, 100, 50, 50);

[self.view addSubview:btn1];
}

- (void)btnClick {

}

- (void)didReceiveMemoryWarning
Expand Down
Loading

0 comments on commit 5fe4150

Please sign in to comment.