yptools 1.0.2 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yptools/help/yp_help.rb +2 -1
- data/lib/yptools/install/yp_install.rb +10 -2
- data/lib/yptools/mgc/yp_makegarbagecode.rb +19 -3
- data/lib/yptools/update/yp_update.rb +19 -0
- data/lib/yptools.rb +11 -6
- metadata +4 -67
- data/lib/yptools/install/mvvm/install-template.sh +0 -15
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.m +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectSwift/___FILEBASENAME___.swift +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon.png +0 -0
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon@2x.png +0 -0
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateInfo.plist +0 -224
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.m +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewSwift/___FILEBASENAME___.swift +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.m +0 -12
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.xib +0 -17
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.swift +0 -12
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.xib +0 -17
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.m +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellSwift/___FILEBASENAME___.swift +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.m +0 -12
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.xib +0 -21
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.swift +0 -12
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.xib +0 -21
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.m +0 -87
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerSwift/___FILEBASENAME___.swift +0 -83
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.m +0 -87
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.xib +0 -31
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.swift +0 -83
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.xib +0 -31
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.m +0 -26
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellSwift/___FILEBASENAME___.swift +0 -18
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.m +0 -18
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.xib +0 -21
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.swift +0 -18
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.xib +0 -21
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.m +0 -87
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerSwift/___FILEBASENAME___.swift +0 -84
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.m +0 -103
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.xib +0 -26
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.swift +0 -84
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.xib +0 -26
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.m +0 -94
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.h +0 -15
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.m +0 -39
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.m +0 -30
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.h +0 -24
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.m +0 -51
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerSwift/___FILEBASENAME___.swift +0 -24
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.h +0 -9
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.m +0 -61
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.xib +0 -43
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.swift +0 -24
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.xib +0 -22
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.m +0 -26
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewSwift/___FILEBASENAME___.swift +0 -15
@@ -1,24 +0,0 @@
|
|
1
|
-
//___FILEHEADER___
|
2
|
-
|
3
|
-
___IMPORTHEADER_cocoaTouchSubclass___
|
4
|
-
|
5
|
-
NS_ASSUME_NONNULL_BEGIN
|
6
|
-
|
7
|
-
@protocol ___FILEBASENAMEASIDENTIFIER___Delegate <NSObject>
|
8
|
-
|
9
|
-
- (void)didEndLoadData:(BOOL)hasMore;
|
10
|
-
|
11
|
-
@end
|
12
|
-
|
13
|
-
@interface ___FILEBASENAMEASIDENTIFIER___ : NSObject
|
14
|
-
|
15
|
-
@property (nonatomic, weak) id <___FILEBASENAMEASIDENTIFIER___Delegate> delegate;
|
16
|
-
@property (nonatomic, readonly) NSMutableArray *dataList;
|
17
|
-
|
18
|
-
- (void)startLoadData;
|
19
|
-
|
20
|
-
- (void)loadMoreData;
|
21
|
-
|
22
|
-
@end
|
23
|
-
|
24
|
-
NS_ASSUME_NONNULL_END
|
@@ -1,51 +0,0 @@
|
|
1
|
-
//___FILEHEADER___
|
2
|
-
|
3
|
-
#import "___FILEBASENAME___.h"
|
4
|
-
|
5
|
-
@interface ___FILEBASENAMEASIDENTIFIER___ ()
|
6
|
-
|
7
|
-
@property (nonatomic, strong) NSMutableArray *dataList;
|
8
|
-
|
9
|
-
@end
|
10
|
-
|
11
|
-
@implementation ___FILEBASENAMEASIDENTIFIER___ {
|
12
|
-
NSInteger _pageSize;
|
13
|
-
NSInteger _pageIndex;
|
14
|
-
}
|
15
|
-
|
16
|
-
- (instancetype)init {
|
17
|
-
if (self = [super init]) {
|
18
|
-
_pageSize = 10;
|
19
|
-
_pageIndex = 1;
|
20
|
-
self.dataList = [[NSMutableArray alloc] init];
|
21
|
-
}
|
22
|
-
return self;
|
23
|
-
}
|
24
|
-
|
25
|
-
- (void)startLoadData {
|
26
|
-
_pageIndex = 1;
|
27
|
-
[self startLoadingData:_pageIndex];
|
28
|
-
}
|
29
|
-
|
30
|
-
- (void)loadMoreData {
|
31
|
-
_pageIndex ++;
|
32
|
-
[self startLoadingData:_pageIndex];
|
33
|
-
}
|
34
|
-
|
35
|
-
- (void)startLoadingData:(NSInteger)pageIndex {
|
36
|
-
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
37
|
-
BOOL hasMore = YES;
|
38
|
-
if (_pageIndex > 3) {
|
39
|
-
hasMore = NO;
|
40
|
-
}
|
41
|
-
if (_pageIndex == 1) {
|
42
|
-
[self.dataList removeAllObjects];
|
43
|
-
}
|
44
|
-
[self.dataList addObjectsFromArray:[[UIFont familyNames] subarrayWithRange:NSMakeRange(self.dataList.count, _pageSize)]];
|
45
|
-
if ([self.delegate respondsToSelector:@selector(didEndLoadData:)]) {
|
46
|
-
[self.delegate didEndLoadData:hasMore];
|
47
|
-
}
|
48
|
-
});
|
49
|
-
}
|
50
|
-
|
51
|
-
@end
|
data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerSwift/___FILEBASENAME___.swift
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
//___FILEHEADER___
|
2
|
-
|
3
|
-
import UIKit
|
4
|
-
|
5
|
-
class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
|
6
|
-
|
7
|
-
override func viewDidLoad() {
|
8
|
-
super.viewDidLoad()
|
9
|
-
|
10
|
-
// Do any additional setup after loading the view.
|
11
|
-
}
|
12
|
-
|
13
|
-
|
14
|
-
/*
|
15
|
-
// MARK: - Navigation
|
16
|
-
|
17
|
-
// In a storyboard-based application, you will often want to do a little preparation before navigation
|
18
|
-
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
|
19
|
-
// Get the new view controller using segue.destination.
|
20
|
-
// Pass the selected object to the new view controller.
|
21
|
-
}
|
22
|
-
*/
|
23
|
-
|
24
|
-
}
|
data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.m
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
//___FILEHEADER___
|
2
|
-
|
3
|
-
#import "___FILEBASENAME___.h"
|
4
|
-
#import "KKLabelModel.h"
|
5
|
-
#import "KKLabelTableViewCell.h"
|
6
|
-
|
7
|
-
@interface ___FILEBASENAMEASIDENTIFIER___ ()
|
8
|
-
@property (strong, nonatomic) NSMutableArray <KKLabelModel *> *datas;
|
9
|
-
@property (weak , nonatomic) IBOutlet UITableView *tableView;
|
10
|
-
|
11
|
-
@end
|
12
|
-
|
13
|
-
@implementation ___FILEBASENAMEASIDENTIFIER___
|
14
|
-
|
15
|
-
- (void)viewDidLoad {
|
16
|
-
[super viewDidLoad];
|
17
|
-
// Do any additional setup after loading the view from its nib.
|
18
|
-
self.title = @"kk";
|
19
|
-
[self setupSubviews];
|
20
|
-
//异步处理消耗内存操作
|
21
|
-
[self reloadDatas];
|
22
|
-
}
|
23
|
-
- (void)setupSubviews{
|
24
|
-
[self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"UITableViewCell"];
|
25
|
-
[self.tableView registerNib:[UINib nibWithNibName:@"KKLabelTableViewCell" bundle:nil] forCellReuseIdentifier:@"KKLabelTableViewCell"];
|
26
|
-
}
|
27
|
-
- (void)reloadDatas{
|
28
|
-
[self.datas removeAllObjects];
|
29
|
-
//构造cell
|
30
|
-
NSArray *items = [UIFont familyNames];
|
31
|
-
for (NSString *item in items) {
|
32
|
-
KKLabelModel *element = [[KKLabelModel alloc] initWithTitle:item value:nil];
|
33
|
-
[self.datas addObject:element];
|
34
|
-
}
|
35
|
-
[self.tableView reloadData];
|
36
|
-
}
|
37
|
-
#pragma mark - lazy load
|
38
|
-
- (NSMutableArray<KKLabelModel *> *)datas{
|
39
|
-
if (!_datas) {
|
40
|
-
_datas = [[NSMutableArray alloc] init];
|
41
|
-
}
|
42
|
-
return _datas;
|
43
|
-
}
|
44
|
-
#pragma mark - UITableViewDelegate,UITableViewDataSource
|
45
|
-
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
|
46
|
-
KKLabelModel *cellModel = self.datas[indexPath.row];
|
47
|
-
KKLabelTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"KKLabelTableViewCell"];
|
48
|
-
cell.cellModel = cellModel;
|
49
|
-
return cell;
|
50
|
-
}
|
51
|
-
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
|
52
|
-
return self.datas.count;
|
53
|
-
}
|
54
|
-
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
|
55
|
-
return AdaptedWidth(44.f);
|
56
|
-
}
|
57
|
-
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
|
58
|
-
//to do
|
59
|
-
}
|
60
|
-
#pragma mark - aciton
|
61
|
-
@end
|
data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.xib
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
3
|
-
<device id="retina6_1" orientation="portrait">
|
4
|
-
<adaptation id="fullscreen"/>
|
5
|
-
</device>
|
6
|
-
<dependencies>
|
7
|
-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
|
8
|
-
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
9
|
-
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
10
|
-
</dependencies>
|
11
|
-
<objects>
|
12
|
-
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="___FILEBASENAMEASIDENTIFIER___">
|
13
|
-
<connections>
|
14
|
-
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
|
15
|
-
<outlet property="tableView" destination="RgW-br-jlM" id="JSc-pB-5nQ"/>
|
16
|
-
</connections>
|
17
|
-
</placeholder>
|
18
|
-
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
19
|
-
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
|
20
|
-
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
|
21
|
-
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
22
|
-
<subviews>
|
23
|
-
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="RgW-br-jlM">
|
24
|
-
<rect key="frame" x="0.0" y="44" width="414" height="818"/>
|
25
|
-
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
26
|
-
<connections>
|
27
|
-
<outlet property="dataSource" destination="-1" id="idZ-U9-ceJ"/>
|
28
|
-
<outlet property="delegate" destination="-1" id="Y8b-7l-54f"/>
|
29
|
-
</connections>
|
30
|
-
</tableView>
|
31
|
-
</subviews>
|
32
|
-
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
33
|
-
<constraints>
|
34
|
-
<constraint firstItem="RgW-br-jlM" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="3vA-A9-GH5"/>
|
35
|
-
<constraint firstItem="RgW-br-jlM" firstAttribute="trailing" secondItem="Q5M-cg-NOt" secondAttribute="trailing" id="Jc6-5c-lfV"/>
|
36
|
-
<constraint firstItem="RgW-br-jlM" firstAttribute="bottom" secondItem="Q5M-cg-NOt" secondAttribute="bottom" id="Y6T-Nt-a38"/>
|
37
|
-
<constraint firstItem="RgW-br-jlM" firstAttribute="top" secondItem="Q5M-cg-NOt" secondAttribute="top" id="Zel-fQ-otC"/>
|
38
|
-
</constraints>
|
39
|
-
<viewLayoutGuide key="safeArea" id="Q5M-cg-NOt"/>
|
40
|
-
<point key="canvasLocation" x="-174" y="96"/>
|
41
|
-
</view>
|
42
|
-
</objects>
|
43
|
-
</document>
|
data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.swift
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
//___FILEHEADER___
|
2
|
-
|
3
|
-
import UIKit
|
4
|
-
|
5
|
-
class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
|
6
|
-
|
7
|
-
override func viewDidLoad() {
|
8
|
-
super.viewDidLoad()
|
9
|
-
|
10
|
-
// Do any additional setup after loading the view.
|
11
|
-
}
|
12
|
-
|
13
|
-
|
14
|
-
/*
|
15
|
-
// MARK: - Navigation
|
16
|
-
|
17
|
-
// In a storyboard-based application, you will often want to do a little preparation before navigation
|
18
|
-
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
|
19
|
-
// Get the new view controller using segue.destination.
|
20
|
-
// Pass the selected object to the new view controller.
|
21
|
-
}
|
22
|
-
*/
|
23
|
-
|
24
|
-
}
|
data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.xib
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
3
|
-
<dependencies>
|
4
|
-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
|
5
|
-
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
6
|
-
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
7
|
-
</dependencies>
|
8
|
-
<objects>
|
9
|
-
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="___FILEBASENAMEASIDENTIFIER___" customModuleProvider="target">
|
10
|
-
<connections>
|
11
|
-
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
|
12
|
-
</connections>
|
13
|
-
</placeholder>
|
14
|
-
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
15
|
-
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
|
16
|
-
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
17
|
-
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
18
|
-
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
19
|
-
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
|
20
|
-
</view>
|
21
|
-
</objects>
|
22
|
-
</document>
|
@@ -1,26 +0,0 @@
|
|
1
|
-
//___FILEHEADER___
|
2
|
-
|
3
|
-
#import "___FILEBASENAME___.h"
|
4
|
-
|
5
|
-
@interface ___FILEBASENAMEASIDENTIFIER___ ()
|
6
|
-
|
7
|
-
@end
|
8
|
-
|
9
|
-
@implementation ___FILEBASENAMEASIDENTIFIER___
|
10
|
-
|
11
|
-
- (instancetype)init{
|
12
|
-
if (self = [super init]) {
|
13
|
-
[self setupSubviews];
|
14
|
-
}
|
15
|
-
return self;
|
16
|
-
}
|
17
|
-
|
18
|
-
- (void)setupSubviews{
|
19
|
-
//to do
|
20
|
-
}
|
21
|
-
|
22
|
-
- (void)layoutSubviews{
|
23
|
-
[super layoutSubviews];
|
24
|
-
}
|
25
|
-
|
26
|
-
@end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
//___FILEHEADER___
|
2
|
-
|
3
|
-
import UIKit
|
4
|
-
|
5
|
-
class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
|
6
|
-
|
7
|
-
/*
|
8
|
-
// Only override draw() if you perform custom drawing.
|
9
|
-
// An empty implementation adversely affects performance during animation.
|
10
|
-
override func draw(_ rect: CGRect) {
|
11
|
-
// Drawing code
|
12
|
-
}
|
13
|
-
*/
|
14
|
-
|
15
|
-
}
|