From d02298a1d1c793c571a00c2cc88b72b7617dd0a9 Mon Sep 17 00:00:00 2001 From: Tyler Burgett Date: Fri, 4 Oct 2019 14:51:33 -0600 Subject: [PATCH] Text fixes --- mapcache-ios.xcodeproj/project.pbxproj | 4 ++-- mapcache-ios/geopackage/MCGeoPackageList.m | 14 ++++++++++++-- .../DisplayCells/MCGeoPackageOperationsCell.xib | 14 ++++++-------- mapcache-ios/views/MCDownloadGeopackage.xib | 6 +++--- 4 files changed, 23 insertions(+), 15 deletions(-) diff --git a/mapcache-ios.xcodeproj/project.pbxproj b/mapcache-ios.xcodeproj/project.pbxproj index de9f1c5..6915e88 100644 --- a/mapcache-ios.xcodeproj/project.pbxproj +++ b/mapcache-ios.xcodeproj/project.pbxproj @@ -1280,7 +1280,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 26; + CURRENT_PROJECT_VERSION = 28; DEVELOPMENT_TEAM = ZL8G5D9G2H; INFOPLIST_FILE = "mapcache-ios/Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 12.0; @@ -1299,7 +1299,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 26; + CURRENT_PROJECT_VERSION = 28; DEVELOPMENT_TEAM = ZL8G5D9G2H; INFOPLIST_FILE = "mapcache-ios/Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 12.0; diff --git a/mapcache-ios/geopackage/MCGeoPackageList.m b/mapcache-ios/geopackage/MCGeoPackageList.m index 95311e2..277a24f 100644 --- a/mapcache-ios/geopackage/MCGeoPackageList.m +++ b/mapcache-ios/geopackage/MCGeoPackageList.m @@ -158,8 +158,18 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N GPKGSDatabase *database = [_geoPackages objectAtIndex:indexPath.row]; cell.geoPackageNameLabel.text = database.name; - cell.featureLayerDetailsLabel.text = [NSString stringWithFormat:@"%ld Feature layers", (long)[database getFeatures].count]; - cell.tileLayerDetailsLabel.text = [NSString stringWithFormat:@"%ld Tile layers", (long)[database getTileCount]]; + + if ([database getFeatures].count == 1) { + cell.featureLayerDetailsLabel.text = [NSString stringWithFormat:@"%ld Feature layer", (long)[database getFeatures].count]; + } else { + cell.featureLayerDetailsLabel.text = [NSString stringWithFormat:@"%ld Feature layers", (long)[database getFeatures].count]; + } + + if ([database getTileCount] == 1) { + cell.tileLayerDetailsLabel.text = [NSString stringWithFormat:@"%ld Tile layer", (long)[database getTileCount]]; + } else { + cell.tileLayerDetailsLabel.text = [NSString stringWithFormat:@"%ld Tile layers", (long)[database getTileCount]]; + } if ([_active isActive:database]) { [cell activeLayersIndicatorOn]; diff --git a/mapcache-ios/views/DisplayCells/MCGeoPackageOperationsCell.xib b/mapcache-ios/views/DisplayCells/MCGeoPackageOperationsCell.xib index 24864a5..828b25a 100644 --- a/mapcache-ios/views/DisplayCells/MCGeoPackageOperationsCell.xib +++ b/mapcache-ios/views/DisplayCells/MCGeoPackageOperationsCell.xib @@ -1,11 +1,9 @@ - - - - + + - + @@ -22,7 +20,7 @@