ios - Xcode 6 @IBInspectable: Initialize to starting value? -
ios - Xcode 6 @IBInspectable: Initialize to starting value? -
when add together @ibinspectable properties, initialized essentially... nothing.
is there way have these properties default something? reddish color track color, gray color background color , 10.0 padding? i've tried @ibinspectable public var padding: cgfloat = 10.0
"10" not reflected in ib.
try code:
override func prepareforinterfacebuilder() { if self.padding == 0 { self.padding = 10} }
source http://justabeech.com/?
ios xcode xcode6 ibdesignable ibinspectable
Comments
Post a Comment