swift - Draw parentheses in a simple way -
i draw kind of big parentheses around view , take little memory (its inside cell of collection view )
so example remove bottom , upper parts simple circle view :
view=uiview(frame: cgrectmake(0,0,self.frame.size.width,self.frame.size.width)) view.backgroundcolor=uicolor.clearcolor() view.layer.cornerradius=self.frame.size.width/2.0 view.layer.borderwidth=0.0 view.layer.bordercolor=uicolor.blackcolor().cgcolor contentview.addsubview(view)
do need use bezier path ? if do, how ?
the simplest way see write "(" inside big uilabel
, pretty limited.
Comments
Post a Comment