Skip to content

Commit 483cc73

Browse files
author
Tang Qiao
committed
ADD: add header utils snippet.
1 parent eee184d commit 483cc73

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDECodeSnippetCompletionPrefix</key>
6+
<string>tq_ape_ui_common</string>
7+
<key>IDECodeSnippetCompletionScopes</key>
8+
<array>
9+
<string>ClassImplementation</string>
10+
</array>
11+
<key>IDECodeSnippetContents</key>
12+
<string>- (void)viewDidLoad {
13+
[super viewDidLoad];
14+
self.view.backgroundColor = VIEW_BG_COLOR;
15+
UIView * headerView = [HeaderUtils addCustomHeaderToView:self.view];
16+
UIButton * returnButton = [HeaderUtils addCustomReturnButtonToView:headerView];
17+
[returnButton addTouchTarget:self action:@selector(returnButtonPressed:)];
18+
[HeaderUtils addTitleLabelToView:headerView].text = @"&lt;#title#&gt;";
19+
20+
[HeaderUtils addHeaderShadowToView:self.view];
21+
}
22+
23+
- (void)viewDidUnload {
24+
[super viewDidUnload];
25+
}
26+
27+
</string>
28+
<key>IDECodeSnippetIdentifier</key>
29+
<string>B564B787-4757-4E8E-A8A2-1299CE7B5420</string>
30+
<key>IDECodeSnippetLanguage</key>
31+
<string>Xcode.SourceCodeLanguage.Objective-C</string>
32+
<key>IDECodeSnippetSummary</key>
33+
<string>tq ape ui common</string>
34+
<key>IDECodeSnippetTitle</key>
35+
<string>tq_ape_ui_common</string>
36+
<key>IDECodeSnippetUserSnippet</key>
37+
<true/>
38+
<key>IDECodeSnippetVersion</key>
39+
<integer>2</integer>
40+
</dict>
41+
</plist>

clear_derived_data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/bash
22

3-
cd /Users/tangqiao/Library/Developer/Xcode/DerivedData
3+
cd ~/Library/Developer/Xcode/DerivedData
44
rm -rf *
55
echo "done"
66

0 commit comments

Comments
 (0)