yptools 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/lib/yptools/install/yp_install.rb +10 -2
  3. data/lib/yptools/mgc/yp_makegarbagecode.rb +19 -3
  4. data/lib/yptools.rb +5 -7
  5. metadata +2 -66
  6. data/lib/yptools/install/mvvm/install-template.sh +0 -15
  7. data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.h +0 -11
  8. data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.m +0 -7
  9. data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectSwift/___FILEBASENAME___.swift +0 -7
  10. data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon.png +0 -0
  11. data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon@2x.png +0 -0
  12. data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateInfo.plist +0 -224
  13. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.h +0 -11
  14. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.m +0 -7
  15. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewSwift/___FILEBASENAME___.swift +0 -7
  16. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.h +0 -11
  17. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.m +0 -12
  18. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.xib +0 -17
  19. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.swift +0 -12
  20. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.xib +0 -17
  21. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.h +0 -11
  22. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.m +0 -7
  23. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellSwift/___FILEBASENAME___.swift +0 -7
  24. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.h +0 -11
  25. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.m +0 -12
  26. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.xib +0 -21
  27. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.swift +0 -12
  28. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.xib +0 -21
  29. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.h +0 -11
  30. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.m +0 -87
  31. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerSwift/___FILEBASENAME___.swift +0 -83
  32. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.h +0 -11
  33. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.m +0 -87
  34. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.xib +0 -31
  35. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.swift +0 -83
  36. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.xib +0 -31
  37. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.h +0 -11
  38. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.m +0 -26
  39. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellSwift/___FILEBASENAME___.swift +0 -18
  40. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.h +0 -11
  41. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.m +0 -18
  42. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.xib +0 -21
  43. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.swift +0 -18
  44. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.xib +0 -21
  45. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.h +0 -11
  46. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.m +0 -87
  47. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerSwift/___FILEBASENAME___.swift +0 -84
  48. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.h +0 -11
  49. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.m +0 -103
  50. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.xib +0 -26
  51. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.swift +0 -84
  52. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.xib +0 -26
  53. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.h +0 -11
  54. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.m +0 -94
  55. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.h +0 -15
  56. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.m +0 -39
  57. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.h +0 -11
  58. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.m +0 -30
  59. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.h +0 -24
  60. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.m +0 -51
  61. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerSwift/___FILEBASENAME___.swift +0 -24
  62. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.h +0 -9
  63. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.m +0 -61
  64. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.xib +0 -43
  65. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.swift +0 -24
  66. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.xib +0 -22
  67. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.h +0 -11
  68. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.m +0 -26
  69. 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>
@@ -1,12 +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
- }
@@ -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,11 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- ___IMPORTHEADER_cocoaTouchSubclass___
4
-
5
- NS_ASSUME_NONNULL_BEGIN
6
-
7
- @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
-
9
- @end
10
-
11
- NS_ASSUME_NONNULL_END
@@ -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,11 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- ___IMPORTHEADER_cocoaTouchSubclass___
4
-
5
- NS_ASSUME_NONNULL_BEGIN
6
-
7
- @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
-
9
- @end
10
-
11
- NS_ASSUME_NONNULL_END
@@ -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>
@@ -1,11 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- ___IMPORTHEADER_cocoaTouchSubclass___
4
-
5
- NS_ASSUME_NONNULL_BEGIN
6
-
7
- @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
-
9
- @end
10
-
11
- NS_ASSUME_NONNULL_END
@@ -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
@@ -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
- }
@@ -1,11 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- ___IMPORTHEADER_cocoaTouchSubclass___
4
-
5
- NS_ASSUME_NONNULL_BEGIN
6
-
7
- @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
-
9
- @end
10
-
11
- NS_ASSUME_NONNULL_END
@@ -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
@@ -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>
@@ -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
- }
@@ -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>
@@ -1,11 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- ___IMPORTHEADER_cocoaTouchSubclass___
4
-
5
- NS_ASSUME_NONNULL_BEGIN
6
-
7
- @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
-
9
- @end
10
-
11
- NS_ASSUME_NONNULL_END