forked from LabPLC/DejateCaer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eventCell.m
50 lines (39 loc) · 1.51 KB
/
eventCell.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// eventCell.m
// DejateCaer
//
// Created by Carlos Castellanos on 12/03/14.
// Copyright (c) 2014 Carlos Castellanos. All rights reserved.
//
#import "eventCell.h"
@implementation eventCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
// Initialization code
UIView *selectedView = [[UIView alloc]init];
selectedView.backgroundColor = [UIColor colorWithRed:0 green:0 blue:255 alpha:0.3];
_nombre=[[UILabel alloc]initWithFrame:CGRectMake(10, 15, 300, 34)];
_nombre.textColor=[UIColor blueColor];
[_nombre setFont:[UIFont systemFontOfSize:18]];
[self addSubview:_nombre];
_hora=[[UILabel alloc]initWithFrame:CGRectMake(10, 53, 300, 34)];
_hora.textColor=[UIColor blackColor];
[_hora setFont:[UIFont systemFontOfSize:10]];
[self addSubview:_hora];
_distancia=[[UILabel alloc]initWithFrame:CGRectMake(255, 48, 70, 21)];
_distancia.text=@"300 m";
[self addSubview:_distancia];
// cell.selectedBackgroundView = selectedView;
self.selectedBackgroundView=selectedView;
}
return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
[super setSelected:selected animated:animated];
// self.backgroundColor=[UIColor yellowColor];
// Configure the view for the selected state
}
@end