Skip to content

Commit 1d47231

Browse files
committed
Added empty message to Historical Prices, changed deployment target to 6.0.
1 parent 154b587 commit 1d47231

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

KVC Validation Pattern/KVC Validation Pattern.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@
264264
GCC_PRECOMPILE_PREFIX_HEADER = YES;
265265
GCC_PREFIX_HEADER = "KVC Validation Pattern/KVC Validation Pattern-Prefix.pch";
266266
INFOPLIST_FILE = "KVC Validation Pattern/KVC Validation Pattern-Info.plist";
267+
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
267268
PRODUCT_NAME = "$(TARGET_NAME)";
268269
WRAPPER_EXTENSION = app;
269270
};
@@ -275,6 +276,7 @@
275276
GCC_PRECOMPILE_PREFIX_HEADER = YES;
276277
GCC_PREFIX_HEADER = "KVC Validation Pattern/KVC Validation Pattern-Prefix.pch";
277278
INFOPLIST_FILE = "KVC Validation Pattern/KVC Validation Pattern-Info.plist";
279+
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
278280
PRODUCT_NAME = "$(TARGET_NAME)";
279281
WRAPPER_EXTENSION = app;
280282
};

KVC Validation Pattern/KVC Validation Pattern/CTCViewController.m

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInte
7474
return nil;
7575
}
7676

77+
- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section {
78+
if (section == CTVViewControllerSectionHistoricalPrices &&
79+
[self tableView:tableView numberOfRowsInSection:section] == 0) {
80+
81+
return NSLocalizedString(@"No historical information is available.", nil);
82+
}
83+
84+
return nil;
85+
}
86+
7787
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
7888
static NSString *cellId = @"value1Cell";
7989

@@ -195,7 +205,7 @@ - (NSString*)jsonStringForResponse:(NSUInteger)responseIndex {
195205

196206

197207
case 3:
198-
/* Response D: historicalPrices is a dictionary instead of an array
208+
/* Response D: historicalPrices is a single object instead of an array
199209
200210
{
201211
"description":"7/11 Fake St.",

0 commit comments

Comments
 (0)