I am developing an iPad application. In my application users can move, rotate and scale images. I ve noticed that when I add a 3d shadowed border to the images, it makes them incredibly heavy and unresponsive. I add the border using this code:
self.layer.MasksToBounds = false;
self.layer.ShadowColor = [[UIColor alloc] initWithRed:0 green:0 blue:0 alpha:0.5].CGColor;
self.layer.ShadowOpacity = 1.0f;
self.layer.ShadowOffset = CGSizeMake(0, 2.5f);
为什么发生这种事?我有什么办法解决这个问题?