0
我用下面的代码双层阴影上缺少的iPad3(但在模拟器工作)
self.view.layer.borderColor = [UIColor whiteColor].CGColor;
self.view.layer.shadowColor = [UIColor blackColor].CGColor;
self.view.layer.shadowOpacity = 1.0;
self.view.layer.shadowRadius = 25.0;
self.view.layer.shadowOffset = CGSizeMake(0, 3);
self.view.clipsToBounds = NO;
CGPathRef shadowPath = [UIBezierPath bezierPathWithRect:self.view.layer.bounds].CGPath;
[self.view.layer setShadowPath:shadowPath];
这工作在模拟器和iPhone5的应该画一个UIView后面的阴影。但是在我的iPad3上:根本没有影子。
任何想法怎么来的?