-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeatherCell.swift
41 lines (29 loc) · 998 Bytes
/
WeatherCell.swift
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
//
// WeatherCell.swift
// AlamoWeather
//
// Created by Andrii Kovalchuk on 06/10/2016.
// Copyright © 2016 Andrii Kovalchuk. All rights reserved.
//
import UIKit
class WeatherCell: UITableViewCell {
@IBOutlet weak var weatherIcon: UIImageView!
@IBOutlet weak var dayLabel: UILabel!
@IBOutlet weak var weatherType: UILabel!
@IBOutlet weak var highTemp: UILabel!
@IBOutlet weak var lowTemp: UILabel!
func configureCell(forecast: Forecast){
lowTemp.text = "\(forecast.lowTemp)"
highTemp.text = forecast.highTemp
weatherType.text = forecast.weatherType
dayLabel.text = forecast.date
weatherIcon.image = UIImage(named: forecast.weatherType)
}
override func awakeFromNib() {
super.awakeFromNib()
}
override func setSelected(_ selected: Bool, animated: Bool) {
// super.setSelected(false, animated: false)
// Configure the view for the selected state
}
}