Skip to content

Commit 846b620

Browse files
committed
Fixed Xcode warnings
resolved #518, #519. thanks @funnel20.
1 parent 95254be commit 846b620

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/InAppSettingsKit/Controllers/IASKAppSettingsViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ - (void)userDefaultsDidChange {
13551355
NSIndexPath *indexPath = [self.tableView indexPathForCell:cell];
13561356
if ([cell isKindOfClass:[IASKPSTextFieldSpecifierViewCell class]] && [((IASKPSTextFieldSpecifierViewCell*)cell).textField isFirstResponder] && indexPath) {
13571357
[indexPathsToUpdate removeObject:indexPath];
1358-
} else if ([cell isKindOfClass:IASKEmbeddedDatePickerViewCell.class] && !((IASKEmbeddedDatePickerViewCell*)cell).datePicker.editing) {
1358+
} else if ([cell isKindOfClass:IASKEmbeddedDatePickerViewCell.class] && !((IASKEmbeddedDatePickerViewCell*)cell).datePicker.editing && indexPath) {
13591359
[indexPathsToUpdate removeObject:indexPath];
13601360
}
13611361
}

Sources/InAppSettingsKit/Controllers/IASKAppSettingsWebViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ - (void)loadView {
117117
}
118118
else {
119119
// Fallback on earlier versions:
120-
self.backButton = [[UIBarButtonItem alloc] initWithTitle:@" < "
120+
self.backButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@" < ", @"No translation needed, silence Xcode warning")
121121
style:UIBarButtonItemStylePlain
122122
target:self
123123
action:@selector(goBack)];
@@ -131,7 +131,7 @@ - (void)loadView {
131131
}
132132
else {
133133
// Fallback on earlier versions:
134-
self.forwardButton = [[UIBarButtonItem alloc] initWithTitle:@" > "
134+
self.forwardButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@" > ", @"No translation needed, silence Xcode warning")
135135
style:UIBarButtonItemStylePlain
136136
target:self
137137
action:@selector(goForward)];

0 commit comments

Comments
 (0)