¡@

Home 

2014/10/15 ¤U¤È 10:11:19

iphone Programming Glossary: maskpath

iOS: Drawing just portions of a UImage

http://stackoverflow.com/questions/10214897/ios-drawing-just-portions-of-a-uimage

and I am having reasonable results by using mask property of the layer . Something like this on my UIView UIBezierPath maskPath UIBezierPath bezierPath maskPath setLineWidth 10.0 maskPath moveToPoint CGPointMake 10.0 10.0 maskPath addLineToPoint CGPointMake.. by using mask property of the layer . Something like this on my UIView UIBezierPath maskPath UIBezierPath bezierPath maskPath setLineWidth 10.0 maskPath moveToPoint CGPointMake 10.0 10.0 maskPath addLineToPoint CGPointMake 100.0 100.0 CAShapeLayer.. the layer . Something like this on my UIView UIBezierPath maskPath UIBezierPath bezierPath maskPath setLineWidth 10.0 maskPath moveToPoint CGPointMake 10.0 10.0 maskPath addLineToPoint CGPointMake 100.0 100.0 CAShapeLayer shapeMaskLayer CAShapeLayer..

How do I round only the top two corners of a UILabel?

http://stackoverflow.com/questions/9034328/how-do-i-round-only-the-top-two-corners-of-a-uilabel

this question You can do this using CALayers and masks CAShapeLayer maskLayer CAShapeLayer layer maskLayer.path maskPath.CGPath label.layer.mask maskLayer where maskPath is a UIBezierPath set up using bezierPathWithRoundedRect byRoundingCorners..