Hi,
In the MyLocation app, we use awakeFromNib() to create a customised selected view. The code is given below:
override func awakeFromNib() { super.awakeFromNib() let selection = UIView(frame: CGRect.zero) selection.backgroundColor = UIColor(white: 1.0, alpha: 0.3) selectedBackgroundView = selection
}
My question is: we give a origin for the view, but we don’t give the size of the view. Will the view be automatically given a size based on size of the tableviewCell ?