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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -