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

  • SEARCH
  • Home
  • 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 9052553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:12:07+00:00 2026-06-16T13:12:07+00:00

I have created a view controller, and added a table view as a subview

  • 0

I have created a view controller, and added a table view as a subview to display data I fetch asynchronously from a web service. Initially the view displays an empty table. After the data is fetched, it is sorted, then stored in an array which holds the data for the table view. I call reloadData on the tableView at that point, and the data is displayed correctly. At this moment in time, the table view acts as it should (scrolling works as expected). However, as soon as I click on a cell, which takes me to a detail view controller (presented modally), when I return the table view has scrolled to the top, and scrolling is disabled (content still bounces however). The data is still there, if I drag up on the table cells, more are shown but snap back off screen once I let go.

Further complicating the issue is my custom split-view controller for changing the content displayed in the table view. It shows and hides itself with gestures, pressing an object in it will refetch the data in the main table view. At the point where the service finished loading the data and the table data has been refreshed, the table scrolls again as would be expected.

The app only supports iOS 6.0 and up for phone device types.

Here is some code that retrieves the data from the web service:

- (BOOL) getPatientVisits {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
    NSDictionary *response = [[HMWebServiceFacade defaultFacade] getVisitListingForPatientId:appDelegate.selectedPatientId withUserCredential:appDelegate.usernamePasswordHash];
    dispatch_async(dispatch_get_main_queue(), ^{
        if ([[response objectForKey:@"status"] isEqualToString:@"OK"])
        {
            patientVisits = [[HMCommonUtils commonUtils] sortedArrayOfVisits:[response objectForKey:@"visits"]];
        }
        else if ([response objectForKey:@"RequestError"])
        {
            [[HMCommonActions standardActions] displayErrorAlertMessage:[response objectForKey:@"RequestError"]];
        }
        else
        {
            [[HMCommonActions standardActions] displayErrorAlertMessage:@"There were no visits for your loved one." withTitle:@"Sorry"];
            patientVisits = nil;
        }

        [visitsTable reloadData];
        [self viewWillAppear:YES];
    });
});

return false;
}

In viewDidLoad I call [self getPatientVisits]; as well as in the callback function for any of clicked objects in the split-view.

  • 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-16T13:12:08+00:00Added an answer on June 16, 2026 at 1:12 pm

    You can set the scrollEnabled property of the tableView in the viewDidLoad method of the View.

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

Sidebar

Related Questions

I have created an view based app and added two table view controller in
I have created side tab bar in view controller and added a table view
I have created a table view with navigation controller. I want to link table
I have created a five column (text boxes) cell (row) in table view controller
I created a new View controller and into I added Table View. I added
I have a view controller with table view that contains 8 cells(sections).I have created
I have created model, controller and view with rails scaffold generator: rails g scaffold
the main tableview will have rows that is added/created from the user and that
I have created a custom UITableViewCell that is added as a subview to my
In my app, I have a table view controller that creates a couple of

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.