-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProfileStatsCell.swift
More file actions
40 lines (26 loc) · 881 Bytes
/
ProfileStatsCell.swift
File metadata and controls
40 lines (26 loc) · 881 Bytes
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
//
// ProfileStatsCell.swift
// TwitterApp
//
// Created by Monika Gorkani on 10/6/14.
// Copyright (c) 2014 Monika Gorkani. All rights reserved.
//
import UIKit
class ProfileStatsCell: UITableViewCell {
@IBOutlet weak var tweets: UILabel!
@IBOutlet weak var followers: UILabel!
@IBOutlet weak var following: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func setSelected(selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
func setUserStats(user:User) {
tweets.text = user.statusCount!.stringValue
following.text = user.friendsCount!.stringValue
followers.text = user.followersCount!.stringValue
}
}