我的标准视图和我在其中声明的分组 uitableview 有自定义背景
//RooViewController
- (void)viewWillAppear:(BOOL)animated
{
[self.navigationController setNavigationBarHidden:YES animated:NO]; //Hides the navigation bar
//Add custom background
self.view.backgroundColor = [UIColor clearColor];
self.parentViewController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bg.png"]];
[super viewWillAppear:animated];
}
//GroupedTableviewController
- (void)viewWillAppear:(BOOL)animated
{
//Add custom background
self.tableView.backgroundColor = [UIColor clearColor];
self.parentViewController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bgplain.png"]];
[super viewWillAppear:animated];
}
问题是视图只是消失并重新出现,但是视图之间会发生动画从左到右滑动...如何将这些自定义背景添加到此视图更改动画中?