iphone Programming Glossary: masklayer.frame
UIView border with fade or blur effect http://stackoverflow.com/questions/2306043/uiview-border-with-fade-or-blur-effect 0.0 green 0.0 blue 0.0 alpha 1.0 .CGColor CGContextFillRect context CGRectMake 0 gradientHPos gradientH CGRectGetWidth maskLayer.frame CGRectGetHeight maskLayer.frame CGContextSetFillColorWithColor context UIColor colorWithRed 0.5 green 0.5 blue 0.5 alpha.. .CGColor CGContextFillRect context CGRectMake 0 gradientHPos gradientH CGRectGetWidth maskLayer.frame CGRectGetHeight maskLayer.frame CGContextSetFillColorWithColor context UIColor colorWithRed 0.5 green 0.5 blue 0.5 alpha 0.0 .CGColor CGContextFillRect..
How to mask a UIView http://stackoverflow.com/questions/3059622/how-to-mask-a-uiview do this iphone uiview masking share improve this question Create your mask layer CALayer maskLayer CALayer layer maskLayer.frame CGRectMake 0 0 yourMaskWidth yourMaskHeight maskLayer.contents __bridge id UIImage imageNamed @ yourMaskImage.png CGImage..
Core Animation CALayer mask animation performance http://stackoverflow.com/questions/4520941/core-animation-calayer-mask-animation-performance init method... Create the mask layer by settings its contents as our PNG icon. CALayer maskLayer CALayer layer maskLayer.frame CGRectMake 0 0 31 31 maskLayer.contentsGravity kCAGravityCenter maskLayer.contentsScale UIScreen mainScreen scale maskLayer.rasterizationScale..
Round two corners in UIView http://stackoverflow.com/questions/4847163/round-two-corners-in-uiview CALayer maskLayer CALayer layer maskLayer.cornerRadius radius maskLayer.backgroundColor UIColor blackColor .CGColor maskLayer.frame maskFrame set the mask self.view.layer.mask maskLayer Add a backaground color just to check if it works self.view.backgroundColor..
iOS: Mask a UIImage using UIBezierPath http://stackoverflow.com/questions/7071815/ios-mask-a-uiimage-using-uibezierpath
|