From aa513b565ac3113fc9ff1ec446f06663fa8c0ffd Mon Sep 17 00:00:00 2001 From: Siqi LIU Date: Fri, 6 Sep 2013 01:16:06 +0200 Subject: [PATCH] shadowing UITableView cell image Change-Id: Ia55741e2b85d5a005e077f306841a559ec05a6e3 --- .../en.lproj/iPhone_autoSize.storyboard | 71 ++++++++++++++++++- .../en.lproj/iPhone_autoSize_old.storyboard | 71 ++++++++++++++++++- .../fr.lproj/iPhone_autoSize.storyboard | 71 ++++++++++++++++++- .../fr.lproj/iPhone_autoSize_old.storyboard | 71 ++++++++++++++++++- .../iosremote/slideShowSwipeInList_iphone.m | 16 +++-- .../zh-Hans.lproj/iPhone_autoSize.storyboard | 71 ++++++++++++++++++- .../iPhone_autoSize_old.storyboard | 71 ++++++++++++++++++- 7 files changed, 429 insertions(+), 13 deletions(-) diff --git a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard index 2e33cf994f0b..3dcb3a137054 100644 --- a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard +++ b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard @@ -260,7 +260,6 @@ - @@ -538,6 +537,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize_old.storyboard b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize_old.storyboard index 2e33cf994f0b..3dcb3a137054 100644 --- a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize_old.storyboard +++ b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize_old.storyboard @@ -260,7 +260,6 @@ - @@ -538,6 +537,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize.storyboard b/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize.storyboard index d40a963dfac1..3415ad743c4c 100644 --- a/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize.storyboard +++ b/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize.storyboard @@ -262,7 +262,6 @@ Contrôle Distant - @@ -540,6 +539,76 @@ Contrôle Distant + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize_old.storyboard b/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize_old.storyboard index d40a963dfac1..3415ad743c4c 100644 --- a/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize_old.storyboard +++ b/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize_old.storyboard @@ -262,7 +262,6 @@ Contrôle Distant - @@ -540,6 +539,76 @@ Contrôle Distant + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/iosremote/iosremote/slideShowSwipeInList_iphone.m b/ios/iosremote/iosremote/slideShowSwipeInList_iphone.m index 624d82304c7a..a4031c7587f0 100644 --- a/ios/iosremote/iosremote/slideShowSwipeInList_iphone.m +++ b/ios/iosremote/iosremote/slideShowSwipeInList_iphone.m @@ -46,10 +46,7 @@ dispatch_queue_t backgroundQueue; [self.stopWatch start]; } - UIImageView *tempImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"slideshowRail"]]; - [tempImageView setFrame:self.tableView.frame]; - - self.tableView.backgroundView = tempImageView; + self.tableView.backgroundColor = [UIColor colorWithRed:.674509804 green:.729411765 blue:.760784314 alpha:1.0]; } - (void) viewDidAppear:(BOOL)animated @@ -128,7 +125,7 @@ dispatch_queue_t backgroundQueue; UILabel *label = [[UILabel alloc] init]; label.frame = CGRectMake(10, 0, 284, 23); label.textColor = [UIColor whiteColor]; - label.font = [UIFont fontWithName:@"Helvetica" size:14.0]; + label.font = [UIFont boldSystemFontOfSize:14.0]; label.text = sectionTitle; label.backgroundColor = [UIColor clearColor]; @@ -159,14 +156,19 @@ dispatch_queue_t backgroundQueue; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier: CellIdentifier]; UILabel * slideNumber = (UILabel *)[cell viewWithTag:2]; + UIImageView * image = (UIImageView *)[cell viewWithTag:1]; // Starting 20, all tags are used for thumbnails in this sidebar [cell setTag:20+indexPath.row]; [self.slideshow getContentAtIndex:indexPath.row forView:cell]; [slideNumber setText:[NSString stringWithFormat:@"%u", indexPath.row+1]]; - - cell.backgroundColor = [UIColor colorWithRed:0 green:0.40784314 blue:0.21568627 alpha:1.0]; + image.layer.shadowColor = [[UIColor blackColor] CGColor]; + image.layer.shadowOpacity = 0.5; + image.layer.shadowRadius = 4.0; + image.layer.shadowOffset = CGSizeMake(3.0f, 3.0f); + image.layer.shadowPath = [UIBezierPath bezierPathWithRect:image.bounds].CGPath; + image.clipsToBounds = NO; return cell; } diff --git a/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize.storyboard b/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize.storyboard index 0ae81fc2c825..376532df6ec3 100644 --- a/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize.storyboard +++ b/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize.storyboard @@ -260,7 +260,6 @@ - @@ -538,6 +537,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize_old.storyboard b/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize_old.storyboard index 0ae81fc2c825..376532df6ec3 100644 --- a/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize_old.storyboard +++ b/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize_old.storyboard @@ -260,7 +260,6 @@ - @@ -538,6 +537,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +