草庐IT

backgroundIndicatorLineWidth

全部标签

swift - 如何修复 "' @IBInspectable' 属性对无法在 Objective-C 中表示的属性毫无意义“警告

在Xcode9和Swift4中,对于某些IBInspectable属性,我总是会收到此警告:@IBDesignablepublicclassCircularIndicator:UIView{//thishasawarning@IBInspectablevarbackgroundIndicatorLineWidth:CGFloat?{//有没有办法摆脱它? 最佳答案 也许。我在复制/粘贴类CircularIndicator:UIView时遇到的确切错误(不是警告)是:Propertycannotbemarked@IBInspectab

swift - 如何修复 "' @IBInspectable' 属性对无法在 Objective-C 中表示的属性毫无意义“警告

在Xcode9和Swift4中,对于某些IBInspectable属性,我总是会收到此警告:@IBDesignablepublicclassCircularIndicator:UIView{//thishasawarning@IBInspectablevarbackgroundIndicatorLineWidth:CGFloat?{//有没有办法摆脱它? 最佳答案 也许。我在复制/粘贴类CircularIndicator:UIView时遇到的确切错误(不是警告)是:Propertycannotbemarked@IBInspectab