-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEventTableViewCell.swift
More file actions
64 lines (54 loc) · 2.04 KB
/
EventTableViewCell.swift
File metadata and controls
64 lines (54 loc) · 2.04 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
// EventTableViewCell.swift
// RowTime
//
// Created by Paul Ventisei on 11/05/2016.
// Copyright © 2016 Paul Ventisei. All rights reserved.
//
import UIKit
class EventTableViewCell: UITableViewCell {
// MARK: Properties
@IBOutlet weak var eventName: UILabel!
@IBOutlet weak var eventDate: UILabel!
@IBOutlet weak var eventShortDescription: UILabel!
@IBOutlet weak var eventImage: UIImageView!
var event_id: String!
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
}
override func draw(_ rect: CGRect) {
// Drawing code
// if let context = UIGraphicsGetCurrentContext(){
// context.addArc(center: CGPoint(x: bounds.midX, y: bounds.midY),
// radius: 100.0,
// startAngle: 0,
// endAngle: 2*CGFloat.pi,
// clockwise: true)
// context.setLineWidth(5.0)
// UIColor.green.setFill()
// UIColor.red.setStroke()
// context.strokePath()
// context.fillPath()
//
// }
let roundedRect = UIBezierPath(roundedRect: bounds, cornerRadius: 16.0)
roundedRect.addClip()
UIColor.white.setFill()
roundedRect.fill()
// path.addArc(withCenter: CGPoint(x: bounds.midX, y: bounds.midY),
// radius: 100.0,
// startAngle: 0,
// endAngle: 2*CGFloat.pi,
// clockwise: true)
// path.lineWidth = 5.0
// UIColor.green.setFill()
// UIColor.red.setStroke()
// path.stroke()
// path.fill()
}
}