12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- //
- // VLCWiFiUploadTableViewCell.m
- // VLC for iOS
- //
- // Created by Felix Paul Kühne on 10.08.13.
- // Copyright (c) 2013 VideoLAN. All rights reserved.
- //
- // Refer to the COPYING file of the official project for license.
- //
- #import "VLCWiFiUploadTableViewCell.h"
- @implementation VLCWiFiUploadTableViewCell
- + (VLCWiFiUploadTableViewCell *)cellWithReuseIdentifier:(NSString *)ident
- {
- NSArray *nibContentArray = [[NSBundle mainBundle] loadNibNamed:@"VLCWiFiUploadTableViewCell" owner:nil options:nil];
- NSAssert([nibContentArray count] == 1, @"meh");
- NSAssert([[nibContentArray lastObject] isKindOfClass:[VLCWiFiUploadTableViewCell class]], @"meh meh");
- VLCWiFiUploadTableViewCell *cell = (VLCWiFiUploadTableViewCell *)[nibContentArray lastObject];
- return cell;
- }
- - (void)awakeFromNib
- {
- self.titleLabel.text = NSLocalizedString(@"HTTP_UPLOAD", @"");
- self.titleLabel.shadowOffset = CGSizeMake(0.0f, 1.0f);
- self.titleLabel.shadowColor = [UIColor colorWithWhite:0.0f alpha:0.25f];
- self.titleLabel.textColor = [UIColor colorWithRed:(196.0f/255.0f) green:(204.0f/255.0f) blue:(218.0f/255.0f) alpha:1.0f];
- self.uploadAddressLabel.shadowOffset = CGSizeMake(0.0f, 1.0f);
- self.uploadAddressLabel.shadowColor = [UIColor colorWithWhite:0.0f alpha:0.25f];
- self.uploadAddressLabel.textColor = [UIColor colorWithRed:(196.0f/255.0f) green:(204.0f/255.0f) blue:(218.0f/255.0f) alpha:1.0f];
- UIView *topLine = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, [UIScreen mainScreen].bounds.size.height, 1.0f)];
- topLine.backgroundColor = [UIColor colorWithRed:(54.0f/255.0f) green:(61.0f/255.0f) blue:(76.0f/255.0f) alpha:1.0f];
- [self.titleLabel.superview addSubview:topLine];
- UIView *topLine2 = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 1.0f, [UIScreen mainScreen].bounds.size.height, 1.0f)];
- topLine2.backgroundColor = [UIColor colorWithRed:(54.0f/255.0f) green:(61.0f/255.0f) blue:(77.0f/255.0f) alpha:1.0f];
- [self.titleLabel.superview addSubview:topLine2];
- UIView *bottomLine = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 50.0f, [UIScreen mainScreen].bounds.size.height, 1.0f)];
- bottomLine.backgroundColor = [UIColor colorWithRed:(40.0f/255.0f) green:(47.0f/255.0f) blue:(61.0f/255.0f) alpha:1.0f];
- [self.titleLabel.superview addSubview:bottomLine];
- }
- + (CGFloat)heightOfCell
- {
- return 50.;
- }
- @end
|