Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

ADD: add RGB macro.

  • Loading branch information...
commit 5c1bcf24d3e7aee63e25478b6af08460f6293975 1 parent 1541b3f
Tang Qiao authored
5 CodeSnippets/48DE1D79-02B2-47AC-9046-25DD6AF3ED6D.codesnippet
@@ -10,10 +10,7 @@
10 10 </array>
11 11 <key>IDECodeSnippetContents</key>
12 12 <string>/**
13   - * method &lt;#description#&gt;
14   - *
15   - * @param &lt;#param#&gt;
16   - * @returns &lt;#returns#&gt;
  13 + *
17 14 */</string>
18 15 <key>IDECodeSnippetIdentifier</key>
19 16 <string>48DE1D79-02B2-47AC-9046-25DD6AF3ED6D</string>
8 CodeSnippets/F2945E28-8E0F-4E27-8840-F40C4E7E7E5D.codesnippet
@@ -12,11 +12,15 @@
12 12 <string>#pragma mark - Network Request Delegate
13 13
14 14 - (void) requestFinished:(BaseRequest *) request {
15   -
  15 +
16 16 }
17 17
18 18 - (void) requestFailed:(BaseRequest *) request {
19   -
  19 +
  20 +}
  21 +
  22 +- (void) clearRequest {
  23 +
20 24 }
21 25 </string>
22 26 <key>IDECodeSnippetIdentifier</key>
5 Macros/MacroUtils.h
@@ -20,5 +20,8 @@
20 20 #define PATH_OF_TEMP NSTemporaryDirectory()
21 21 #define PATH_OF_DOCUMENT [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]
22 22
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]
24 27

0 comments on commit 5c1bcf2

Please sign in to comment.
Something went wrong with that request. Please try again.