[問題] framework中@IBInspectable無法使用?

作者: sweet00914 (別理我)   2017-06-14 15:46:45
各位大大是否有在開發cocoa touch framework中
如使用@IBDesignable來創建 UIView的屬性@IBInspectable
如:
@IBDesignable public class BorderedButton: UIButton {
@IBInspectable var cornerRadius: CGFloat = 0 {
didSet {
layer.cornerRadius = cornerRadius
layer.masksToBounds = cornerRadius > 0
}
}
在cocoa touch framework中使用uint test這個view 屬性
在cocoa touch framework中使用uint test這個view 屬性
custom class 與 module都正常
屬性也可以設定
作者: tentenlee (天天)   2017-06-14 17:06:00
你有先bulid過嗎?
作者: cryinglove (毓™)   2017-06-14 18:48:00
@IBInspectable public var

Links booklink

Contact Us: admin [ a t ] ucptt.com