¡@

Home 

2014/10/15 ¤U¤È 10:04:41

iphone Programming Glossary: borderradius

How to draw a “speech bubble” on an iPhone?

http://stackoverflow.com/questions/4442126/how-to-draw-a-speech-bubble-on-an-iphone

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.. HEIGHTOFPOPUPTRIANGLE 0.5f currentFrame.size.width strokeWidth 0.5f currentFrame.size.height strokeWidth 0.5f borderRadius strokeWidth CGContextAddArcToPoint context currentFrame.size.width strokeWidth 0.5f currentFrame.size.height strokeWidth.. currentFrame.size.width 2.0f WIDTHOFPOPUPTRIANGLE 2.0f strokeWidth 0.5f currentFrame.size.height strokeWidth 0.5f borderRadius strokeWidth CGContextAddArcToPoint context strokeWidth 0.5f currentFrame.size.height strokeWidth 0.5f strokeWidth 0.5f HEIGHTOFPOPUPTRIANGLE..