yptools 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yptools/install/yp_install.rb +10 -2
- data/lib/yptools/mgc/yp_makegarbagecode.rb +19 -3
- data/lib/yptools.rb +5 -7
- metadata +2 -66
- 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,21 +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"/>
|
10
|
-
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
11
|
-
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="___FILEBASENAMEASIDENTIFIER___">
|
12
|
-
<rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
|
13
|
-
<autoresizingMask key="autoresizingMask"/>
|
14
|
-
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
|
15
|
-
<rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
|
16
|
-
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
|
17
|
-
</view>
|
18
|
-
<viewLayoutGuide key="safeArea" id="SEy-5g-ep8"/>
|
19
|
-
</collectionViewCell>
|
20
|
-
</objects>
|
21
|
-
</document>
|
data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.xib
DELETED
@@ -1,21 +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"/>
|
10
|
-
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
11
|
-
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="___FILEBASENAMEASIDENTIFIER___" customModuleProvider="target">
|
12
|
-
<rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
|
13
|
-
<autoresizingMask key="autoresizingMask"/>
|
14
|
-
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
|
15
|
-
<rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
|
16
|
-
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
|
17
|
-
</view>
|
18
|
-
<viewLayoutGuide key="safeArea" id="ZTg-uK-7eu"/>
|
19
|
-
</collectionViewCell>
|
20
|
-
</objects>
|
21
|
-
</document>
|
@@ -1,87 +0,0 @@
|
|
1
|
-
//___FILEHEADER___
|
2
|
-
|
3
|
-
#import "___FILEBASENAME___.h"
|
4
|
-
|
5
|
-
@interface ___FILEBASENAMEASIDENTIFIER___ ()
|
6
|
-
|
7
|
-
@end
|
8
|
-
|
9
|
-
@implementation ___FILEBASENAMEASIDENTIFIER___
|
10
|
-
|
11
|
-
static NSString * const reuseIdentifier = @"Cell";
|
12
|
-
|
13
|
-
- (void)viewDidLoad {
|
14
|
-
[super viewDidLoad];
|
15
|
-
|
16
|
-
// Uncomment the following line to preserve selection between presentations
|
17
|
-
// self.clearsSelectionOnViewWillAppear = NO;
|
18
|
-
|
19
|
-
// Register cell classes
|
20
|
-
[self.collectionView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:reuseIdentifier];
|
21
|
-
|
22
|
-
// Do any additional setup after loading the view.
|
23
|
-
}
|
24
|
-
|
25
|
-
/*
|
26
|
-
#pragma mark - Navigation
|
27
|
-
|
28
|
-
// In a storyboard-based application, you will often want to do a little preparation before navigation
|
29
|
-
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
|
30
|
-
// Get the new view controller using [segue destinationViewController].
|
31
|
-
// Pass the selected object to the new view controller.
|
32
|
-
}
|
33
|
-
*/
|
34
|
-
|
35
|
-
#pragma mark <UICollectionViewDataSource>
|
36
|
-
|
37
|
-
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
|
38
|
-
#warning Incomplete implementation, return the number of sections
|
39
|
-
return 0;
|
40
|
-
}
|
41
|
-
|
42
|
-
|
43
|
-
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
|
44
|
-
#warning Incomplete implementation, return the number of items
|
45
|
-
return 0;
|
46
|
-
}
|
47
|
-
|
48
|
-
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
|
49
|
-
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:reuseIdentifier forIndexPath:indexPath];
|
50
|
-
|
51
|
-
// Configure the cell
|
52
|
-
|
53
|
-
return cell;
|
54
|
-
}
|
55
|
-
|
56
|
-
#pragma mark <UICollectionViewDelegate>
|
57
|
-
|
58
|
-
/*
|
59
|
-
// Uncomment this method to specify if the specified item should be highlighted during tracking
|
60
|
-
- (BOOL)collectionView:(UICollectionView *)collectionView shouldHighlightItemAtIndexPath:(NSIndexPath *)indexPath {
|
61
|
-
return YES;
|
62
|
-
}
|
63
|
-
*/
|
64
|
-
|
65
|
-
/*
|
66
|
-
// Uncomment this method to specify if the specified item should be selected
|
67
|
-
- (BOOL)collectionView:(UICollectionView *)collectionView shouldSelectItemAtIndexPath:(NSIndexPath *)indexPath {
|
68
|
-
return YES;
|
69
|
-
}
|
70
|
-
*/
|
71
|
-
|
72
|
-
/*
|
73
|
-
// Uncomment these methods to specify if an action menu should be displayed for the specified item, and react to actions performed on the item
|
74
|
-
- (BOOL)collectionView:(UICollectionView *)collectionView shouldShowMenuForItemAtIndexPath:(NSIndexPath *)indexPath {
|
75
|
-
return NO;
|
76
|
-
}
|
77
|
-
|
78
|
-
- (BOOL)collectionView:(UICollectionView *)collectionView canPerformAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
|
79
|
-
return NO;
|
80
|
-
}
|
81
|
-
|
82
|
-
- (void)collectionView:(UICollectionView *)collectionView performAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
|
83
|
-
|
84
|
-
}
|
85
|
-
*/
|
86
|
-
|
87
|
-
@end
|
@@ -1,83 +0,0 @@
|
|
1
|
-
//___FILEHEADER___
|
2
|
-
|
3
|
-
import UIKit
|
4
|
-
|
5
|
-
private let reuseIdentifier = "Cell"
|
6
|
-
|
7
|
-
class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
|
8
|
-
|
9
|
-
override func viewDidLoad() {
|
10
|
-
super.viewDidLoad()
|
11
|
-
|
12
|
-
// Uncomment the following line to preserve selection between presentations
|
13
|
-
// self.clearsSelectionOnViewWillAppear = false
|
14
|
-
|
15
|
-
// Register cell classes
|
16
|
-
self.collectionView!.register(UICollectionViewCell.self, forCellWithReuseIdentifier: reuseIdentifier)
|
17
|
-
|
18
|
-
// Do any additional setup after loading the view.
|
19
|
-
}
|
20
|
-
|
21
|
-
/*
|
22
|
-
// MARK: - Navigation
|
23
|
-
|
24
|
-
// In a storyboard-based application, you will often want to do a little preparation before navigation
|
25
|
-
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
|
26
|
-
// Get the new view controller using [segue destinationViewController].
|
27
|
-
// Pass the selected object to the new view controller.
|
28
|
-
}
|
29
|
-
*/
|
30
|
-
|
31
|
-
// MARK: UICollectionViewDataSource
|
32
|
-
|
33
|
-
override func numberOfSections(in collectionView: UICollectionView) -> Int {
|
34
|
-
// #warning Incomplete implementation, return the number of sections
|
35
|
-
return 0
|
36
|
-
}
|
37
|
-
|
38
|
-
|
39
|
-
override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
|
40
|
-
// #warning Incomplete implementation, return the number of items
|
41
|
-
return 0
|
42
|
-
}
|
43
|
-
|
44
|
-
override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
|
45
|
-
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: reuseIdentifier, for: indexPath)
|
46
|
-
|
47
|
-
// Configure the cell
|
48
|
-
|
49
|
-
return cell
|
50
|
-
}
|
51
|
-
|
52
|
-
// MARK: UICollectionViewDelegate
|
53
|
-
|
54
|
-
/*
|
55
|
-
// Uncomment this method to specify if the specified item should be highlighted during tracking
|
56
|
-
override func collectionView(_ collectionView: UICollectionView, shouldHighlightItemAt indexPath: IndexPath) -> Bool {
|
57
|
-
return true
|
58
|
-
}
|
59
|
-
*/
|
60
|
-
|
61
|
-
/*
|
62
|
-
// Uncomment this method to specify if the specified item should be selected
|
63
|
-
override func collectionView(_ collectionView: UICollectionView, shouldSelectItemAt indexPath: IndexPath) -> Bool {
|
64
|
-
return true
|
65
|
-
}
|
66
|
-
*/
|
67
|
-
|
68
|
-
/*
|
69
|
-
// Uncomment these methods to specify if an action menu should be displayed for the specified item, and react to actions performed on the item
|
70
|
-
override func collectionView(_ collectionView: UICollectionView, shouldShowMenuForItemAt indexPath: IndexPath) -> Bool {
|
71
|
-
return false
|
72
|
-
}
|
73
|
-
|
74
|
-
override func collectionView(_ collectionView: UICollectionView, canPerformAction action: Selector, forItemAt indexPath: IndexPath, withSender sender: Any?) -> Bool {
|
75
|
-
return false
|
76
|
-
}
|
77
|
-
|
78
|
-
override func collectionView(_ collectionView: UICollectionView, performAction action: Selector, forItemAt indexPath: IndexPath, withSender sender: Any?) {
|
79
|
-
|
80
|
-
}
|
81
|
-
*/
|
82
|
-
|
83
|
-
}
|
@@ -1,87 +0,0 @@
|
|
1
|
-
//___FILEHEADER___
|
2
|
-
|
3
|
-
#import "___FILEBASENAME___.h"
|
4
|
-
|
5
|
-
@interface ___FILEBASENAMEASIDENTIFIER___ ()
|
6
|
-
|
7
|
-
@end
|
8
|
-
|
9
|
-
@implementation ___FILEBASENAMEASIDENTIFIER___
|
10
|
-
|
11
|
-
static NSString * const reuseIdentifier = @"Cell";
|
12
|
-
|
13
|
-
- (void)viewDidLoad {
|
14
|
-
[super viewDidLoad];
|
15
|
-
|
16
|
-
// Uncomment the following line to preserve selection between presentations
|
17
|
-
// self.clearsSelectionOnViewWillAppear = NO;
|
18
|
-
|
19
|
-
// Register cell classes
|
20
|
-
[self.collectionView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:reuseIdentifier];
|
21
|
-
|
22
|
-
// Do any additional setup after loading the view.
|
23
|
-
}
|
24
|
-
|
25
|
-
/*
|
26
|
-
#pragma mark - Navigation
|
27
|
-
|
28
|
-
// In a storyboard-based application, you will often want to do a little preparation before navigation
|
29
|
-
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
|
30
|
-
// Get the new view controller using [segue destinationViewController].
|
31
|
-
// Pass the selected object to the new view controller.
|
32
|
-
}
|
33
|
-
*/
|
34
|
-
|
35
|
-
#pragma mark <UICollectionViewDataSource>
|
36
|
-
|
37
|
-
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
|
38
|
-
#warning Incomplete implementation, return the number of sections
|
39
|
-
return 0;
|
40
|
-
}
|
41
|
-
|
42
|
-
|
43
|
-
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
|
44
|
-
#warning Incomplete implementation, return the number of items
|
45
|
-
return 0;
|
46
|
-
}
|
47
|
-
|
48
|
-
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
|
49
|
-
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:reuseIdentifier forIndexPath:indexPath];
|
50
|
-
|
51
|
-
// Configure the cell
|
52
|
-
|
53
|
-
return cell;
|
54
|
-
}
|
55
|
-
|
56
|
-
#pragma mark <UICollectionViewDelegate>
|
57
|
-
|
58
|
-
/*
|
59
|
-
// Uncomment this method to specify if the specified item should be highlighted during tracking
|
60
|
-
- (BOOL)collectionView:(UICollectionView *)collectionView shouldHighlightItemAtIndexPath:(NSIndexPath *)indexPath {
|
61
|
-
return YES;
|
62
|
-
}
|
63
|
-
*/
|
64
|
-
|
65
|
-
/*
|
66
|
-
// Uncomment this method to specify if the specified item should be selected
|
67
|
-
- (BOOL)collectionView:(UICollectionView *)collectionView shouldSelectItemAtIndexPath:(NSIndexPath *)indexPath {
|
68
|
-
return YES;
|
69
|
-
}
|
70
|
-
*/
|
71
|
-
|
72
|
-
/*
|
73
|
-
// Uncomment these methods to specify if an action menu should be displayed for the specified item, and react to actions performed on the item
|
74
|
-
- (BOOL)collectionView:(UICollectionView *)collectionView shouldShowMenuForItemAtIndexPath:(NSIndexPath *)indexPath {
|
75
|
-
return NO;
|
76
|
-
}
|
77
|
-
|
78
|
-
- (BOOL)collectionView:(UICollectionView *)collectionView canPerformAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
|
79
|
-
return NO;
|
80
|
-
}
|
81
|
-
|
82
|
-
- (void)collectionView:(UICollectionView *)collectionView performAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
|
83
|
-
|
84
|
-
}
|
85
|
-
*/
|
86
|
-
|
87
|
-
@end
|
@@ -1,31 +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___">
|
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
|
-
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" dataMode="none" 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
|
-
<viewLayoutGuide key="safeArea" id="ij9-ne-Ryy"/>
|
19
|
-
<collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="c7k-ch-oGk">
|
20
|
-
<size key="itemSize" width="50" height="50"/>
|
21
|
-
<size key="headerReferenceSize" width="0.0" height="0.0"/>
|
22
|
-
<size key="footerReferenceSize" width="0.0" height="0.0"/>
|
23
|
-
<inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
|
24
|
-
</collectionViewFlowLayout>
|
25
|
-
<connections>
|
26
|
-
<outlet property="dataSource" destination="-1" id="Tng-2m-Rnh"/>
|
27
|
-
<outlet property="delegate" destination="-1" id="9aC-8N-iBw"/>
|
28
|
-
</connections>
|
29
|
-
</collectionView>
|
30
|
-
</objects>
|
31
|
-
</document>
|
@@ -1,83 +0,0 @@
|
|
1
|
-
//___FILEHEADER___
|
2
|
-
|
3
|
-
import UIKit
|
4
|
-
|
5
|
-
private let reuseIdentifier = "Cell"
|
6
|
-
|
7
|
-
class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
|
8
|
-
|
9
|
-
override func viewDidLoad() {
|
10
|
-
super.viewDidLoad()
|
11
|
-
|
12
|
-
// Uncomment the following line to preserve selection between presentations
|
13
|
-
// self.clearsSelectionOnViewWillAppear = false
|
14
|
-
|
15
|
-
// Register cell classes
|
16
|
-
self.collectionView!.register(UICollectionViewCell.self, forCellWithReuseIdentifier: reuseIdentifier)
|
17
|
-
|
18
|
-
// Do any additional setup after loading the view.
|
19
|
-
}
|
20
|
-
|
21
|
-
/*
|
22
|
-
// MARK: - Navigation
|
23
|
-
|
24
|
-
// In a storyboard-based application, you will often want to do a little preparation before navigation
|
25
|
-
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
|
26
|
-
// Get the new view controller using [segue destinationViewController].
|
27
|
-
// Pass the selected object to the new view controller.
|
28
|
-
}
|
29
|
-
*/
|
30
|
-
|
31
|
-
// MARK: UICollectionViewDataSource
|
32
|
-
|
33
|
-
override func numberOfSections(in collectionView: UICollectionView) -> Int {
|
34
|
-
// #warning Incomplete implementation, return the number of sections
|
35
|
-
return 0
|
36
|
-
}
|
37
|
-
|
38
|
-
|
39
|
-
override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
|
40
|
-
// #warning Incomplete implementation, return the number of items
|
41
|
-
return 0
|
42
|
-
}
|
43
|
-
|
44
|
-
override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
|
45
|
-
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: reuseIdentifier, for: indexPath)
|
46
|
-
|
47
|
-
// Configure the cell
|
48
|
-
|
49
|
-
return cell
|
50
|
-
}
|
51
|
-
|
52
|
-
// MARK: UICollectionViewDelegate
|
53
|
-
|
54
|
-
/*
|
55
|
-
// Uncomment this method to specify if the specified item should be highlighted during tracking
|
56
|
-
override func collectionView(_ collectionView: UICollectionView, shouldHighlightItemAt indexPath: IndexPath) -> Bool {
|
57
|
-
return true
|
58
|
-
}
|
59
|
-
*/
|
60
|
-
|
61
|
-
/*
|
62
|
-
// Uncomment this method to specify if the specified item should be selected
|
63
|
-
override func collectionView(_ collectionView: UICollectionView, shouldSelectItemAt indexPath: IndexPath) -> Bool {
|
64
|
-
return true
|
65
|
-
}
|
66
|
-
*/
|
67
|
-
|
68
|
-
/*
|
69
|
-
// Uncomment these methods to specify if an action menu should be displayed for the specified item, and react to actions performed on the item
|
70
|
-
override func collectionView(_ collectionView: UICollectionView, shouldShowMenuForItemAt indexPath: IndexPath) -> Bool {
|
71
|
-
return false
|
72
|
-
}
|
73
|
-
|
74
|
-
override func collectionView(_ collectionView: UICollectionView, canPerformAction action: Selector, forItemAt indexPath: IndexPath, withSender sender: Any?) -> Bool {
|
75
|
-
return false
|
76
|
-
}
|
77
|
-
|
78
|
-
override func collectionView(_ collectionView: UICollectionView, performAction action: Selector, forItemAt indexPath: IndexPath, withSender sender: Any?) {
|
79
|
-
|
80
|
-
}
|
81
|
-
*/
|
82
|
-
|
83
|
-
}
|
@@ -1,31 +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
|
-
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" dataMode="none" 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
|
-
<viewLayoutGuide key="safeArea" id="oBF-5E-Iza"/>
|
19
|
-
<collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="c7k-ch-oGk">
|
20
|
-
<size key="itemSize" width="50" height="50"/>
|
21
|
-
<size key="headerReferenceSize" width="0.0" height="0.0"/>
|
22
|
-
<size key="footerReferenceSize" width="0.0" height="0.0"/>
|
23
|
-
<inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
|
24
|
-
</collectionViewFlowLayout>
|
25
|
-
<connections>
|
26
|
-
<outlet property="dataSource" destination="-1" id="Tng-2m-Rnh"/>
|
27
|
-
<outlet property="delegate" destination="-1" id="9aC-8N-iBw"/>
|
28
|
-
</connections>
|
29
|
-
</collectionView>
|
30
|
-
</objects>
|
31
|
-
</document>
|
data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.m
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
//___FILEHEADER___
|
2
|
-
|
3
|
-
#import "___FILEBASENAME___.h"
|
4
|
-
|
5
|
-
@interface ___FILEBASENAMEASIDENTIFIER___ ()
|
6
|
-
|
7
|
-
@end
|
8
|
-
|
9
|
-
@implementation ___FILEBASENAMEASIDENTIFIER___
|
10
|
-
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
|
11
|
-
if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
|
12
|
-
self.selectionStyle = UITableViewCellSelectionStyleNone;
|
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
|
data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellSwift/___FILEBASENAME___.swift
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
//___FILEHEADER___
|
2
|
-
|
3
|
-
import UIKit
|
4
|
-
|
5
|
-
class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
|
6
|
-
|
7
|
-
override func awakeFromNib() {
|
8
|
-
super.awakeFromNib()
|
9
|
-
// Initialization code
|
10
|
-
}
|
11
|
-
|
12
|
-
override func setSelected(_ selected: Bool, animated: Bool) {
|
13
|
-
super.setSelected(selected, animated: animated)
|
14
|
-
|
15
|
-
// Configure the view for the selected state
|
16
|
-
}
|
17
|
-
|
18
|
-
}
|
data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.m
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
//___FILEHEADER___
|
2
|
-
|
3
|
-
#import "___FILEBASENAME___.h"
|
4
|
-
|
5
|
-
@implementation ___FILEBASENAMEASIDENTIFIER___
|
6
|
-
|
7
|
-
- (void)awakeFromNib {
|
8
|
-
[super awakeFromNib];
|
9
|
-
// Initialization code
|
10
|
-
}
|
11
|
-
|
12
|
-
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
13
|
-
[super setSelected:selected animated:animated];
|
14
|
-
|
15
|
-
// Configure the view for the selected state
|
16
|
-
}
|
17
|
-
|
18
|
-
@end
|
data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.xib
DELETED
@@ -1,21 +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"/>
|
10
|
-
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
11
|
-
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="___FILEBASENAMEASIDENTIFIER___">
|
12
|
-
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
|
13
|
-
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
14
|
-
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
|
15
|
-
<rect key="frame" x="0.0" y="0.0" width="320" height="43"/>
|
16
|
-
<autoresizingMask key="autoresizingMask"/>
|
17
|
-
</tableViewCellContentView>
|
18
|
-
<viewLayoutGuide key="safeArea" id="aW0-zy-SZf"/>
|
19
|
-
</tableViewCell>
|
20
|
-
</objects>
|
21
|
-
</document>
|
data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.swift
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
//___FILEHEADER___
|
2
|
-
|
3
|
-
import UIKit
|
4
|
-
|
5
|
-
class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
|
6
|
-
|
7
|
-
override func awakeFromNib() {
|
8
|
-
super.awakeFromNib()
|
9
|
-
// Initialization code
|
10
|
-
}
|
11
|
-
|
12
|
-
override func setSelected(_ selected: Bool, animated: Bool) {
|
13
|
-
super.setSelected(selected, animated: animated)
|
14
|
-
|
15
|
-
// Configure the view for the selected state
|
16
|
-
}
|
17
|
-
|
18
|
-
}
|
data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.xib
DELETED
@@ -1,21 +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"/>
|
10
|
-
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
11
|
-
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="___FILEBASENAMEASIDENTIFIER___" customModuleProvider="target">
|
12
|
-
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
|
13
|
-
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
14
|
-
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
|
15
|
-
<rect key="frame" x="0.0" y="0.0" width="320" height="43"/>
|
16
|
-
<autoresizingMask key="autoresizingMask"/>
|
17
|
-
</tableViewCellContentView>
|
18
|
-
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
|
19
|
-
</tableViewCell>
|
20
|
-
</objects>
|
21
|
-
</document>
|