jjzjj

IndicatorSize

全部标签

ios - 创建一个圆形的 TableViewCell 指示器,就像 Apple Mail 应用程序一样

当电子邮件被标记为未读时,我正在尝试为我的TableViewCell创建一个类似于AppleMail应用程序中的圆形指示器。我有以下代码:varIndicator=CAShapeLayer()varIndicatorSize:CGFloat=10//standardbluecolorletblueColor=UIColor(red:0,green:122.0/255.0,blue:1.0,alpha:1)//createcircularCAShapeLayerIndicator.bounds=CGRect(x:0,y:0,width:IndicatorSize,height:Indic