Skip to content

Commit 5c1bcf2

Browse files
committed
ADD: add RGB macro.
1 parent 1541b3f commit 5c1bcf2

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

Diff for: CodeSnippets/48DE1D79-02B2-47AC-9046-25DD6AF3ED6D.codesnippet

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
</array>
1111
<key>IDECodeSnippetContents</key>
1212
<string>/**
13-
* method &lt;#description#&gt;
14-
*
15-
* @param &lt;#param#&gt;
16-
* @returns &lt;#returns#&gt;
13+
*
1714
*/</string>
1815
<key>IDECodeSnippetIdentifier</key>
1916
<string>48DE1D79-02B2-47AC-9046-25DD6AF3ED6D</string>

Diff for: CodeSnippets/F2945E28-8E0F-4E27-8840-F40C4E7E7E5D.codesnippet

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@
1212
<string>#pragma mark - Network Request Delegate
1313

1414
- (void) requestFinished:(BaseRequest *) request {
15-
15+
1616
}
1717

1818
- (void) requestFailed:(BaseRequest *) request {
19-
19+
20+
}
21+
22+
- (void) clearRequest {
23+
2024
}
2125
</string>
2226
<key>IDECodeSnippetIdentifier</key>

Diff for: Macros/MacroUtils.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@
2020
#define PATH_OF_TEMP NSTemporaryDirectory()
2121
#define PATH_OF_DOCUMENT [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]
2222

23-
#define APP_VERSION [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]
23+
24+
#define APP_VERSION [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]
25+
26+
#define RGB(A, B, C) [UIColor colorWithRed:A/255.0 green:B/255.0 blue:C/255.0 alpha:1.0]
2427

0 commit comments

Comments
 (0)