Closed natbro closed 12 years ago
lacking a wiki to park it and not wanting to pollute with a branch, here's a quick git diff for EasyTableViewController.m and EasyTableView.xcodeproj/project.pbxproj if you want to try it out on iPhone. works great, thanks alek!
diff --git a/Classes/EasyTableViewController.m b/Classes/EasyTableViewController.m index 63f117b..6c6ad01 100644 --- a/Classes/EasyTableViewController.m +++ b/Classes/EasyTableViewController.m @@ -10,11 +10,11 @@ #import "EasyTableViewController.h" #import "EasyTableView.h" -#define PORTRAIT_WIDTH 768 -#define LANDSCAPE_HEIGHT (1024-20) +#define PORTRAIT_WIDTH 320 +#define LANDSCAPE_HEIGHT (480-20) #define NUM_OF_CELLS 21 -#define HORIZONTAL_TABLEVIEW_HEIGHT 140 -#define VERTICAL_TABLEVIEW_WIDTH 180 +#define HORIZONTAL_TABLEVIEW_HEIGHT 60 +#define VERTICAL_TABLEVIEW_WIDTH 60 #define TABLE_BACKGROUND_COLOR [UIColor clearColor] #define BORDER_VIEW_TAG 10 @@ -118,7 +118,7 @@ UILabel *label = [[[UILabel alloc] initWithFrame:labelRect] autorelease]; label.textAlignment = UITextAlignmentCenter; label.textColor = [UIColor whiteColor]; - label.font = [UIFont boldSystemFontOfSize:60]; + label.font = [UIFont boldSystemFontOfSize:24]; // Use a different color for the two different examples if (easyTableView == horizontalView) diff --git a/EasyTableView.xcodeproj/project.pbxproj b/EasyTableView.xcodeproj/project.pbxproj index b808555..3d5dad2 100755 --- a/EasyTableView.xcodeproj/project.pbxproj +++ b/EasyTableView.xcodeproj/project.pbxproj @@ -260,7 +260,7 @@ GCC_WARN_UNUSED_VARIABLE = YES; PREBINDING = NO; SDKROOT = iphoneos3.2; - TARGETED_DEVICE_FAMILY = 2; + TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; @@ -275,7 +275,7 @@ OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; PREBINDING = NO; SDKROOT = iphoneos3.2; - TARGETED_DEVICE_FAMILY = 2; + TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; };
Thanks for doing this natbro. One of these days I'll make it a universal app.
For others ... the real value in this project is in EasyTableView.h and .m. That class will work just as well on iPhone as iPad.
lacking a wiki to park it and not wanting to pollute with a branch, here's a quick git diff for EasyTableViewController.m and EasyTableView.xcodeproj/project.pbxproj if you want to try it out on iPhone. works great, thanks alek!