我想创建@IBInspectable元素,如下图所示:
@IBInspectable
我的想法是使用枚举类似的东西@IBInspectable,但它看起来不是这样,任何想法如何实现这样的元素?
编辑:
看起来@IBInspectable只支持以下类型:
Int
CGFloat
Double
String
Bool
CGPoint
CGSize
CGRect
UIColor
UIImage
长号
iphone xcode objective-c ios swift
ios ×1
iphone ×1
objective-c ×1
swift ×1
xcode ×1