Friday, 7 November 2014
Thursday, 6 November 2014
Sunday, 2 November 2014
Blurring Image
#import "UIImageEffects.h"
....
UIImage *blurdImage=[UIImageEffects imageByApplyingLightEffectToImage:[UIImage imageNamed:@"sample.png"]];
Apple Sample code with UIImageEffects classes
Round two corners of UIView
-(void) setMaskTo:(UIView*)view byRoundingCorners:(UIRectCorner)corners withRadius:(CGFloat)radius;
{
UIBezierPath* rounded = [UIBezierPath bezierPathWithRoundedRect:view.bounds byRoundingCorners:corners cornerRadii:CGSizeMake(radius, radius)];
CAShapeLayer* shape = [[CAShapeLayer alloc] init];
[shape setPath:rounded.CGPath];
view.layer.mask = shape;
}
// function Call
[self setMaskTo:view1 byRoundingCorners:UIRectCornerTopLeft|UIRectCornerBottomLeft withRadius:20.0];
Subscribe to:
Posts (Atom)