¡@

Home 

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

iphone Programming Glossary: cgpathaddrect

Resize and move a UIView with Core Animation (CAKeyFrameAnimation)

http://stackoverflow.com/questions/1887156/resize-and-move-a-uiview-with-core-animation-cakeyframeanimation

or origin it doesn't work. CAAnimationGroup anigroup CAAnimationGroup new CGMutablePathRef thePath CGPathCreateMutable CGPathAddRect thePath NULL CGRectMake 0 0 320 480 CGPathAddRect thePath NULL CGRectMake location.x 16 location.y 24 32 48 CGPathAddRect.. CAAnimationGroup new CGMutablePathRef thePath CGPathCreateMutable CGPathAddRect thePath NULL CGRectMake 0 0 320 480 CGPathAddRect thePath NULL CGRectMake location.x 16 location.y 24 32 48 CGPathAddRect thePath NULL CGRectMake 190 20 32 48 CAKeyframeAnimation.. thePath NULL CGRectMake 0 0 320 480 CGPathAddRect thePath NULL CGRectMake location.x 16 location.y 24 32 48 CGPathAddRect thePath NULL CGRectMake 190 20 32 48 CAKeyframeAnimation AniLoc CAKeyframeAnimation animationWithKeyPath @ frame AniLoc.path..

Masking a CALayer - iPhone

http://stackoverflow.com/questions/2267676/masking-a-calayer-iphone

CGPathAddEllipseInRect path nil CGRectMake 0 0 13 13 CGPathAddEllipseInRect path nil CGRectMake 30 0 13 13 CGPathAddRect path nil CGRectMake 6 0 32 13 maskLayer setPath path maskLayer setFillColor UIColor greenColor CGColor self layer addSublayer..

iPhone clip image with path

http://stackoverflow.com/questions/2570653/iphone-clip-image-with-path

CGRect rect CGContextRef context UIGraphicsGetCurrentContext CGMutablePathRef path CGPathCreateMutable or for e.g. CGPathAddRect path NULL CGRectInset self bounds 10 20 CGPathAddEllipseInRect path NULL self bounds CGContextAddPath context path CGContextClip..

Core Text: Render to an Odd Shape

http://stackoverflow.com/questions/3813318/core-text-render-to-an-odd-shape

float w 200.0 float h 300.0 CGRect bounds CGRectMake 10.0 10.0 w h I draw using only one of the following lines CGPathAddRect path NULL bounds THIS LINE WILL WORK CGPathAddEllipseInRect path NULL bounds THIS LINE WILL CRASH IT Initialize an attributed..

Inner shadow effect on UIView layer?

http://stackoverflow.com/questions/4431292/inner-shadow-effect-on-uiview-layer

known pass CGPathGetPathBoundingBox visiblePath instead of bounds in the following line 42 cuould just be any offset 0 CGPathAddRect path NULL CGRectInset bounds 42 42 Add the visible path so that it gets subtracted for the shadow CGPathAddPath path NULL..

Memory usage grows with CTFontCreateWithName and CTFramesetterRef

http://stackoverflow.com/questions/8491841/memory-usage-grows-with-ctfontcreatewithname-and-ctframesetterref

CFAttributedStringEndEditing attributedStringRef retain count of the font 2 CGMutablePathRef path CGPathCreateMutable CGPathAddRect path NULL rect CFRelease font retain count of the font 1 CTFramesetterRef frameSetter CTFramesetterCreateWithAttributedString..