2 ms·
let member = BBB() init() { super.init() member.frame = self.frame } ? Note that since this is a UIView subclass, you're actually
by cballard 11y ago
let member = BBB()
init()
{
super.init()
member.frame = self.frame
}
?
Note that since this is a UIView subclass, you're actually implementing init(frame:) and init?(coder:), not init(). I usually unify the two by declaring subviews as lets and initializing them in a private setup method.