summaryrefslogtreecommitdiff
path: root/Juick/TitleView.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-08-14 02:55:21 +0300
committerGravatar Vitaly Takmazov2016-08-14 02:55:21 +0300
commite32c85b7650c0869a2aa319111a837ede75669d1 (patch)
tree29dfae230aded06e9d70781a8d393818e0d926f1 /Juick/TitleView.m
parent934f816c2e0851ea7faf7c7e5c4a84779a4accfe (diff)
new navcell layout
Diffstat (limited to 'Juick/TitleView.m')
-rw-r--r--Juick/TitleView.m37
1 files changed, 0 insertions, 37 deletions
diff --git a/Juick/TitleView.m b/Juick/TitleView.m
deleted file mode 100644
index 3948041..0000000
--- a/Juick/TitleView.m
+++ /dev/null
@@ -1,37 +0,0 @@
-//
-// TitleView.m
-// Juick
-//
-// Created by Vitaly on 01.02.14.
-// Copyright (c) 2014 com.juick. All rights reserved.
-//
-
-#import "TitleView.h"
-
-@implementation TitleView
-
--(id) initWithImage:(UIImage *)image title:(NSString *)title {
- self = [super initWithFrame:CGRectMake(0, 0, 300.0f, 52.0f)];
- if (self) {
- self.image = [[UIImageView alloc] init];
- self.image.image = image;
- self.title = [[UILabel alloc] init];
- self.title.numberOfLines = 1;
- self.title.textAlignment = NSTextAlignmentLeft;
- self.title.text = title;
- self.title.textColor = [ColorScheme navbarFont];
- [self addSubview:self.image];
- [self addSubview:self.title];
- }
- return self;
-}
-
--(void) layoutSubviews {
- [super layoutSubviews];
- self.image.frame = CGRectMake(10, 10, 32, 32);
- float textHeight = [UILabel sizeForLabel:self.title width:320.0f].size.height;
- self.title.frame = CGRectMake(10 + 32 + 10, 10 + (32 - textHeight) / 2,
- self.bounds.size.width - 32 - 10*3, textHeight);
-}
-
-@end