-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy path___PACKAGENAMEASIDENTIFIER___Section.m
More file actions
executable file
·81 lines (56 loc) · 1.31 KB
/
___PACKAGENAMEASIDENTIFIER___Section.m
File metadata and controls
executable file
·81 lines (56 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//
// ___FILENAME___
// ___PACKAGENAME___
//
// Created by ___FULLUSERNAME___ on ___DATE___.
// Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
//
#define MRC !__has_feature(objc_arc)
#if MRC
#define CC_Strong retain
#define CC_Weak assign
#else
#define CC_Strong strong
#define CC_Weak weak
#endif
#import "___PACKAGENAMEASIDENTIFIER___Section.h"
@interface ___PACKAGENAMEASIDENTIFIER___Section ()
@property (nonatomic, CC_Strong) NSBundle *bundle;
@property (nonatomic, CC_Strong) ___PACKAGENAMEASIDENTIFIER___SectionView *view;
@property (nonatomic, CC_Weak) UIViewController <CCSectionDelegate> *delegate;
@end
@implementation ___PACKAGENAMEASIDENTIFIER___Section
- (instancetype)init {
self = [super init];
if (self) {
self.bundle = [NSBundle bundleForClass:[self class]];
}
return self;
}
- (CGFloat)sectionHeight {
return 50.0f;
}
- (void)loadView {
self.view = [[___PACKAGENAMEASIDENTIFIER___SectionView alloc] init];
}
- (UIView *)view {
if (!_view) {
[self loadView];
}
return _view;
}
- (void)dealloc {
#if MRC
[self.view release];
#endif
self.view = nil;
self.bundle = nil;
#if MRC
[super dealloc];
#endif
}
- (void)controlCenterWillAppear {
}
- (void)controlCenterDidDisappear {
}
@end