Skip to content

Commit 95474a7

Browse files
committed
ADD: add UIConstant macro.
1 parent ca62cdb commit 95474a7

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Macros/MacroUtils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//
44
// The macro is inspired from:
55
// http://www.yifeiyang.net/iphone-development-skills-of-the-debugging-chapter-2-save-the-log/
6+
67
#ifdef DEBUG
78
#define debugLog(...) NSLog(__VA_ARGS__)
89
#define debugMethod() NSLog(@"%s", __func__)

Macros/UIConstants.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Author: Tang Qiao
2+
// Date: 2012-3-3
3+
//
4+
5+
// UIConstants provides contants variables for UI control.
6+
#define UI_NAVIGATION_BAR_HEIGHT 44
7+
#define UI_TAB_BAR_HEIGHT 49
8+
#define UI_STATUS_BAR_HEIGHT 20
9+
#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

Comments
 (0)