Please considering following code:
class myManager {
var aView: UIView!
func createView() {
aView = UIView()
}
func removeView() {
aView = nil // anything else?
}
}
If I create a UIView
like this and later I want to remove it, is this the correct way? Anything I should be aware of?