iphone Programming Glossary: strokewidth
How to draw a “speech bubble” on an iPhone? http://stackoverflow.com/questions/4442126/how-to-draw-a-speech-bubble-on-an-iphone as follows CGRect currentFrame self.bounds CGContextSetLineJoin context kCGLineJoinRound CGContextSetLineWidth context strokeWidth CGContextSetStrokeColorWithColor context MyPopupLayer popupBorderColor CGContextSetFillColorWithColor context MyPopupLayer.. popupBackgroundColor Draw and fill the bubble CGContextBeginPath context CGContextMoveToPoint context borderRadius strokeWidth 0.5f strokeWidth HEIGHTOFPOPUPTRIANGLE 0.5f CGContextAddLineToPoint context round currentFrame.size.width 2.0f WIDTHOFPOPUPTRIANGLE.. Draw and fill the bubble CGContextBeginPath context CGContextMoveToPoint context borderRadius strokeWidth 0.5f strokeWidth HEIGHTOFPOPUPTRIANGLE 0.5f CGContextAddLineToPoint context round currentFrame.size.width 2.0f WIDTHOFPOPUPTRIANGLE 2.0f..
|