We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca62cdb commit 95474a7Copy full SHA for 95474a7
Macros/MacroUtils.h
@@ -3,6 +3,7 @@
3
//
4
// The macro is inspired from:
5
// http://www.yifeiyang.net/iphone-development-skills-of-the-debugging-chapter-2-save-the-log/
6
+
7
#ifdef DEBUG
8
#define debugLog(...) NSLog(__VA_ARGS__)
9
#define debugMethod() NSLog(@"%s", __func__)
Macros/UIConstants.h
@@ -0,0 +1,15 @@
1
+// Author: Tang Qiao
2
+// Date: 2012-3-3
+//
+// UIConstants provides contants variables for UI control.
+#define UI_NAVIGATION_BAR_HEIGHT 44
+#define UI_TAB_BAR_HEIGHT 49
+#define UI_STATUS_BAR_HEIGHT 20
+#define UI_SCREEN_WIDTH 320
10
+#define UI_SCREEN_HEIGHT 480
11
12
+#define UI_LABEL_LENGTH 200
13
+#define UI_LABEL_HEIGHT 15
14
+#define UI_LABEL_FONT_SIZE 12
15
+#define UI_LABEL_FONT [UIFont systemFontOfSize:UI_LABEL_FONT_SIZE]
0 commit comments