Skip to content

Commit ee5a0ab

Browse files
committed
Merge pull request #7 from SamingZhong/master
modify the macro about UI_SCREEN_WIDTH
2 parents 3bb9b83 + 15f3594 commit ee5a0ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeSnippets/20888CE5-13E0-4B11-9BE3-4EEEB93DB277.codesnippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#define UI_NAVIGATION_BAR_HEIGHT 44
3030
#define UI_TAB_BAR_HEIGHT 49
3131
#define UI_STATUS_BAR_HEIGHT 20
32-
#define UI_SCREEN_WIDTH 320
32+
#define UI_SCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.weight)
3333
#define UI_SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height)
3434

3535
#define UI_LABEL_LENGTH 200

0 commit comments

Comments
 (0)