Skip to content

Commit e2cb1d3

Browse files
committed
Fix warnings
1 parent 89d22fb commit e2cb1d3

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

FastImageCache/FastImageCacheDemo/Classes/FICDPhotosTableViewCell.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
+ (NSString *)reuseIdentifier;
2323
+ (NSInteger)photosPerRow;
2424
+ (CGFloat)outerPadding;
25-
+ (CGFloat)rowHeightForInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
25+
+ (CGFloat)rowHeight;
2626

2727
@end
2828

FastImageCache/FastImageCacheDemo/Classes/FICDPhotosTableViewCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ + (CGFloat)outerPadding {
103103
return outerPadding;
104104
}
105105

106-
+ (CGFloat)rowHeightForInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
106+
+ (CGFloat)rowHeight {
107107
CGFloat rowHeight = ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) ? 84 : 79;
108108

109109
return rowHeight;

FastImageCache/FastImageCacheDemo/Classes/FICDViewController.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,7 @@ - (UITableViewCell*)tableView:(UITableView*)table cellForRowAtIndexPath:(NSIndex
485485
#pragma mark - UITableViewDelegate
486486

487487
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
488-
CGFloat rowHeight = [FICDPhotosTableViewCell rowHeightForInterfaceOrientation:[self interfaceOrientation]];
489-
490-
return rowHeight;
488+
return [FICDPhotosTableViewCell rowHeight];
491489
}
492490

493491
- (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath {
@@ -551,7 +549,7 @@ - (void)photoDisplayController:(FICDFullscreenPhotoDisplayController *)photoDisp
551549
[self _updateStatusBarStyleForColorAveragedImage:colorAveragedImage];
552550
}
553551
} else {
554-
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES];
552+
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES];
555553
}
556554
}
557555

0 commit comments

Comments
 (0)