Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7798145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:54:53+00:00 2026-06-01T23:54:53+00:00

I have custom background for my standard view and my grouped uitableview which I

  • 0

I have custom background for my standard view and my grouped uitableview which I have declared in

//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];
}

The thing with this is the views just disappear and reappear but there is an animation happening between the views sliding left to right… how can I add these custom backgrounds to this view change animation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:54:55+00:00Added an answer on June 1, 2026 at 11:54 pm

    You need to set a background view of the view that’s appearing, not the view of the parent view controller. By setting the view of the parent view controller you’re essentially switching out that view (which won’t be animate) while the view of the appearing view controller (which is clear, apparently) is animated in. Instead, add the background view to the appearing view controller view, or in your case, just set the color:

    self.view.backgroundColor = UIColor colorWithPatternImage:[UIImage imageNamed:@"bgplain.png"]];

    I also noted that you’ve changing the background view of the parentView in your root view controller, which means the parent view is probably a UINavigationView (also per your comment). In general, you shouldn’t be changing the view characteristics of a navigationController mostly because it’s designed to hold other views/controllers, not display its own view (besides the navigation bar, of course).

    So I don’t think you should be messing with self.parentViewController.view and stick with self.view in each view controller.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a grouped table view and I have added a custom background view,
I have a standard, grouped UITableView that I am trying to add a custom
I have a custom tableview cell created programmatically that consists of: a background view
I have an app that has a custom background for a UITableView . Up
Short Intro Currently I have a UITableView which is filled with custom cells that
I have a standard Activity with its layout, and I have a custom animated
Background have a custom UITableCellView in which I'm using a custom UITextField that I've
I have a custom UINavigationController that draws a custom background. That navigation controller is
Background I have a custom collection that is binded to the datagridview this.datagridview.DataSource =
Background info: I have a windows application (in c#) that handles a custom file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.