Re:Is Apple Using Swift?
by cballard on Monday January 18, 2016 @02:38PM
(#10926390)
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.
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.