@IBInspectable var numLines:UInt! = 2
The above code shows a message
Failed to set (numLines) user defined inspected property
UIViewNewClass [setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key numLines.
It does work with another IBInspectable
property which is UIColor
.
Does IBInspectable
work with Int
or UInt
or am I doing something wrong here or it works only with NSNumber
?