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];
那么过渡一点也不顺利。但是,如果它删除用于绘制阴影的代码块,则过渡像往常一样平滑
你对这个问题有什么想法吗?如果您之前遇到过,请帮忙谢谢