MyViewControllerB.xib包含
view( UIView )
|
|__image (UIImageView)
|
|__view (UIView)
|
|__text (UITextView)
|
|__view (UIView) ( shadow is adding at here )
然后,我在底部添加视图四周阴影如下
- (void)viewDidLoad
{
[super viewDidLoad];
[self.bottomView.layer setMasksToBounds:NO];
self.bottomView.layer.shadowColor = [UIColor blackColor].CGColor;
self.bottomView.layer.shadowRadius = 5;
self.bottomView.layer.shadowOpacity = 1;
self.bottomView.layer.shadowOffset = CGSizeMake(0 , 0 );
}
当我做pushViewController: animated:
在MyViewControllerA:
@implementation MyViewControllerA
MyViewControllerB *controller = [[MyViewControllerB alloc] initWithNibName:@"MyViewControllerB" bundle:nil];
[self.navigationController pushViewController:controller animated:YES];
然后过渡不顺利的。 然而,如果除去用于绘制阴影码的块中,过渡是平滑的如常
你有关于这个问题的任何想法。 请帮助,如果你之前由于经历过