Corner redondo y borde

//Init profile image with Parallax self.userImage.layer.cornerRadius = self.userImage.frame.size.height/2; self.userImage.clipsToBounds = YES; self.userImage.parallaxIntensity = 15; CALayer *borderLayer = [CALayer layer]; CGRect borderFrame = CGRectMake(0, 0, (self.userImage.frame.size.width), (self.userImage.frame.size.height)); borderLayer.backgroundColor = [[UIColor clearColor] CGColor]; borderLayer.frame = borderFrame; borderLayer.cornerRadius = self.userImage.frame.size.height/2; borderLayer.borderWidth = 2; borderLayer.borderColor = [[UIColor colorWithHexadecimal:@"#EEEEEE" alpha:1] CGColor]; [self.userImage.layer addSublayer:borderLayer];

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.