Skip to content

Commit

Permalink
iOS 5.1.1 compatibility added
Browse files Browse the repository at this point in the history
- ActionSheetPicker-iOS6-7: autolayout removal in storyboard
- some minor fixes in order to be iOS5 compatible
  • Loading branch information
kashifhisam committed Apr 7, 2015
1 parent 71c2665 commit 432de73
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 107 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES;
INFOPLIST_FILE = "ActionSheetPicker-iOS6-7-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
IPHONEOS_DEPLOYMENT_TARGET = 5.1.1;
PRODUCT_NAME = "ActionSheetPicker-iOS6-7";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -328,7 +328,7 @@
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES;
INFOPLIST_FILE = "ActionSheetPicker-iOS6-7-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
IPHONEOS_DEPLOYMENT_TARGET = 5.1.1;
PRODUCT_NAME = "ActionSheetPicker-iOS6-7";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:@"cellId"
forIndexPath:indexPath];
UITableViewCell *cell;
if ([self.tableView respondsToSelector:@selector(dequeueReusableCellWithIdentifier:forIndexPath:)])
cell = [self.tableView dequeueReusableCellWithIdentifier:@"cellId"
forIndexPath:indexPath];
else
cell = [self.tableView dequeueReusableCellWithIdentifier:@"cellId"];

cell.textLabel.text = @(indexPath.row).stringValue;
cell.detailTextLabel.text = @"Choose me!";
Expand Down
Loading

0 comments on commit 432de73

Please sign in to comment.