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

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -