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

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -