diff --git a/FastImageCache/FastImageCacheDemo/Classes/FICDPhotosTableViewCell.h b/FastImageCache/FastImageCacheDemo/Classes/FICDPhotosTableViewCell.h index 27ba5e0..11d3b07 100644 --- a/FastImageCache/FastImageCacheDemo/Classes/FICDPhotosTableViewCell.h +++ b/FastImageCache/FastImageCacheDemo/Classes/FICDPhotosTableViewCell.h @@ -22,7 +22,7 @@ + (NSString *)reuseIdentifier; + (NSInteger)photosPerRow; + (CGFloat)outerPadding; -+ (CGFloat)rowHeightForInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation; ++ (CGFloat)rowHeight; @end diff --git a/FastImageCache/FastImageCacheDemo/Classes/FICDPhotosTableViewCell.m b/FastImageCache/FastImageCacheDemo/Classes/FICDPhotosTableViewCell.m index cf35c31..eaa24c3 100644 --- a/FastImageCache/FastImageCacheDemo/Classes/FICDPhotosTableViewCell.m +++ b/FastImageCache/FastImageCacheDemo/Classes/FICDPhotosTableViewCell.m @@ -103,7 +103,7 @@ + (CGFloat)outerPadding { return outerPadding; } -+ (CGFloat)rowHeightForInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { ++ (CGFloat)rowHeight { CGFloat rowHeight = ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) ? 84 : 79; return rowHeight; diff --git a/FastImageCache/FastImageCacheDemo/Classes/FICDViewController.m b/FastImageCache/FastImageCacheDemo/Classes/FICDViewController.m index f12b789..f830e87 100644 --- a/FastImageCache/FastImageCacheDemo/Classes/FICDViewController.m +++ b/FastImageCache/FastImageCacheDemo/Classes/FICDViewController.m @@ -485,9 +485,7 @@ - (UITableViewCell*)tableView:(UITableView*)table cellForRowAtIndexPath:(NSIndex #pragma mark - UITableViewDelegate - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { - CGFloat rowHeight = [FICDPhotosTableViewCell rowHeightForInterfaceOrientation:[self interfaceOrientation]]; - - return rowHeight; + return [FICDPhotosTableViewCell rowHeight]; } - (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath { @@ -551,7 +549,7 @@ - (void)photoDisplayController:(FICDFullscreenPhotoDisplayController *)photoDisp [self _updateStatusBarStyleForColorAveragedImage:colorAveragedImage]; } } else { - [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES]; + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES]; } }