我的导航栏中有一个子视图。我尝试通过这种方式添加它:
UIView *customView =
[[UIView alloc] initWithFrame:
CGRectMake(0, 0, image.size.width + label.frame.size.width, 44)];
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
[customView addSubview:imageView];
[customView addSubview:label];
[self.navigationController.navigationBar addSubview:customView];
但是,当我尝试推动导航栏时,customView 停留在原地,而不是跟随滑动导航栏动画。如何实现动画子视图?甚至可能吗?谢谢!