Skip to content

Commit

Permalink
fixed rendering bug on iOS 7
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Aug 13, 2013
1 parent b79c927 commit 585ae3c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,5 @@ platforms/ios/Gearboy.xcodeproj/xcuserdata/*
*.xcexplist

*.xcsettings

*.xccheckout
9 changes: 6 additions & 3 deletions platforms/ios/Gearboy/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,21 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
masterViewController = [[MasterViewController alloc] initWithNibName:@"MasterViewController_iPhone" bundle:nil];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:masterViewController];
navigationController.navigationBar.tintColor = [UIColor blackColor];
navigationController.navigationBar.barStyle = UIBarStyleBlack;
navigationController.navigationBar.translucent = NO;
self.window.rootViewController = navigationController;
} else {
masterViewController = [[MasterViewController alloc] initWithNibName:@"MasterViewController_iPad" bundle:nil];
UINavigationController *masterNavigationController = [[UINavigationController alloc] initWithRootViewController:masterViewController];

masterNavigationController.navigationBar.tintColor = [UIColor blackColor];
masterNavigationController.navigationBar.barStyle = UIBarStyleBlack;
masterNavigationController.navigationBar.translucent = NO;

DetailViewController *detailViewController = [[DetailViewController alloc] initWithNibName:@"DetailViewController_iPad" bundle:nil];
UINavigationController *detailNavigationController = [[UINavigationController alloc] initWithRootViewController:detailViewController];

detailNavigationController.navigationBar.tintColor = [UIColor blackColor];
detailNavigationController.navigationBar.barStyle = UIBarStyleBlack;
detailNavigationController.navigationBar.translucent = NO;

masterViewController.detailViewController = detailViewController;

Expand Down
2 changes: 1 addition & 1 deletion platforms/ios/Gearboy/Gearboy-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.3</string>
<string>1.4</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
4 changes: 1 addition & 3 deletions platforms/ios/Gearboy/MasterViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N

cell.textLabel.text = [rom stringByDeletingPathExtension];
cell.textLabel.adjustsFontSizeToFitWidth = YES;
UIView* blackColorView = [[UIView alloc] init];
blackColorView.backgroundColor = [UIColor blackColor];
cell.selectedBackgroundView = blackColorView;
cell.selectionStyle = UITableViewCellSelectionStyleGray;
return cell;
}

Expand Down

0 comments on commit 585ae3c

Please sign in to comment.