-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProfileCell.m
48 lines (37 loc) · 1.28 KB
/
ProfileCell.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
//
// ProfileCell.m
// unnamed
//
// Created by Xiangyu Zhang on 2/19/15.
// Copyright (c) 2015 com.yahoo. All rights reserved.
//
#import "ProfileCell.h"
#import "ProfileImageView.h"
#import "UIColor+AppColor.h"
@interface ProfileCell()
//############################################################
@property (weak, nonatomic) IBOutlet UILabel *profileTitleLabel;
//############################################################
//surveyOrderControl decides the order questions of a user is shown in the
//questionTableView
//[0]Recent - based on time the question is created
//[1]Open - still time order but only questions that hasn't been closed yet
//[2]Popular - based on the number of participants of a question
@property (weak, nonatomic) IBOutlet UISegmentedControl *surveyOrderControl;
@end
@implementation ProfileCell
- (void)awakeFromNib {
// Initialization code
self.backgroundColor = [UIColor appBgColor];
self.profileTitleLabel.textColor = [UIColor appTintColor];
self.profileImageView.isEnabled = NO;
}
- (void)setUser:(User *)user {
_user = user;
self.profileImageView.user = self.user;
self.profileTitleLabel.text = self.user.name;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
// Configure the view for the selected state
}
@end