Desempenho de animação e sombra CALayer
self.layer.contentsScale = [UIScreen mainScreen].scale; self.layer.rasterizationScale = self.layer.contentsScale; self.layer.shouldRasterize = YES; self.layer.shadowOpacity = 0.7; self.layer.shadowOffset = CGSizeMake(0, 0); __self.layer.shadowPath = [UIBezierPath bezierPathWithRoundedRect:CGRectInset(self.bounds, -2, -2) cornerRadius:self.layer.cornerRadius].CGPath;__ self.layer.shadowColor = [UIColor blackColor].CGColor; self.layer.shadowRadius = …
Continuar lendo