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 8595461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:26:20+00:00 2026-06-12T00:26:20+00:00

I am using a single UITableView within my app. I change the delegate and

  • 0

I am using a single UITableView within my app. I change the delegate and datasource of the UITableView depending upon row selections etc.

To animate the transitions as the user moves around I grab an image of the current UITableView , place the image in a UIImageView placed over the top of the UITableView, reloadData on the UITableView, then remove the UIImageView within an animated transition.

Code as follows:

-(void)showImageEditPageWithImageId:(NSString*)imageId
{
    UITableView* tableview = (UITableView*)[self.view viewWithTag:VIEWTAG_P1_MAINTABLEVIEW];

    UIImage* image = [HPSImageHelper imageWithView:tableview];
    UIImageView* imageView = [[UIImageView alloc] initWithFrame:tableview.frame];
    imageView.tag = 336611;
    imageView.layer.borderWidth=1;
    imageView.layer.borderColor = [UIColor blueColor].CGColor;
    [imageView setImage:image];

    _tableViewController = [[HPSImageEditTableViewController alloc] initWithImageId:imageId];
    ((HPSImageEditTableViewController*)_tableViewController).callingController = self;    
    tableview.dataSource = _tableViewController;
    tableview.delegate = _tableViewController;

    [tableview reloadData];

    [tableview.superview addSubview:imageView];

    [NSTimer scheduledTimerWithTimeInterval:0.1
                                     target:self
                                   selector:@selector(removeCoveringImage)
                                   userInfo:nil
                                    repeats:NO];

}

-(void)removeCoveringImage
{
    UIView* imageView = [self.view viewWithTag:336611];

    [UIView transitionWithView:imageView
                      duration:0.9
                       options:UIViewAnimationOptionTransitionCurlUp
                    animations:^{
                        //Nothing here

                    }
                    completion:^(BOOL finished){

                        [imageView removeFromSuperview];
                    }
     ];

}

The trouble is, the UITableView only visually refreshes itself once the transition is complete, so the new view suddenly jumps into view.

It seems to me that the UITableView is not refreshing itself because it ‘knows’ it isn’t actually visible.

Is that what’s happening, and if so how do I get the UITableView to redraw even though it is covered by the UIImageView?

Thanks.

  • 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-12T00:26:21+00:00Added an answer on June 12, 2026 at 12:26 am

    Try calling setNeedsDisplay on your table view after load data. If that doest help try add UIViewAnimationOptionLayoutSubviews option to your animation. If nether of those help, try to lower alpha of imageView only slightly enough(0.99 or 0.98 or 0.90) to force tableView to redraw before animation. Hope this helped

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

Sidebar

Related Questions

I've seen the GWT Expenses app from GWT SDK is using single module structure.
I hav a UITableViewCell and UITableView in a single view.Clicking on particular row of
Using single transaction when processing the datasets, I would like to change the order
I am using Single Table Inheritance for managing different types of projects. Models: class
why php escapes backslashes when using single quotes? I'm trying to output \\ on
How can i insert multiple values in a sql table using single statement. Doing
I am in a computer arch class and we are doing mips using single
In Bash script, what is the difference between the following snippets? 1) Using single
I am using the Single Access Token from authlogic to sync data from a
I am using a single module a lot in the Erlang shell. Is there

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.