-
Notifications
You must be signed in to change notification settings - Fork 10
/
UIView.snippet
44 lines (44 loc) · 889 Bytes
/
UIView.snippet
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
{
"header" : {
"imports":[
"#import <UIKit/UIKit.h>"
],
"interface_tag":[
"@interface <CLASS_NAME> : UIView",
"{",
"<SUBVIEW_DECLARATION>",
"}",
"@end"
]
},
"implementation" : {
"imports":[
"#import \"<CLASS_NAME>.h\""
],
"implementation_tag" :[
"@implementation <CLASS_NAME>",
"@end"
],
"create":[
"- (instancetype)initWithFrame:(CGRect)frame",
"{",
" self = [super initWithFrame:frame];",
" if(self)",
" {",
"<SUBVIEW_INIT>",
"",
"<SUBVIEW_ADD>",
" }",
" return self;",
"}"
],
"layout":[
"- (void)layoutSubviews",
"{",
" [super layoutSubviews];",
"",
"<SUBVIEW_LAYOUT>",
"}"
]
}
}