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

The Archive Base Latest Questions

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

I have a scrollview that is set up to scroll back and forth between

  • 0

I have a scrollview that is set up to scroll back and forth between 2 pages. Each page uses different data for labels, etc… on the same view controller.

I need to re-load the data on each page, without exiting the ‘sub’ view.

For example, I navigate to page 1 in the scroll view. My web svc sends me updated data via notification. I need to reload the data that is on page 2, while still sitting on page 1… or at least reload that data the instant I start scrolling to page 2.

I hope this makes sense. Thanks in advance!

(snippet from my scrollView.. but I would think I need to add something in my subview..?)

- (void)loadScrollViewWithPage:(int)page {
if (page < 0) return;
if (page >= kNumberOfPages) return;

if ([controllerName isEqualToString:@"ClassicViewController"]){
    ClassicViewController *controller = [viewControllers objectAtIndex:page];
    if ((NSNull *)controller == [NSNull null]) {

        controller = [[ClassicViewController alloc] initWithPageNumber:page];
        controller.referringObject = self.referringObject;
        controller.user = self.user;
        controller.pushedFromScroll = kTrue;
        controller.theirRoll = self.theirRoll;

         NSLog(@"page replaced # = %d", page);
        [viewControllers replaceObjectAtIndex:page withObject:controller];
        [controller release];
    }


    if (nil == controller.view.superview) {
        CGRect frame = scrollView.frame;
        frame.origin.x = frame.size.width * page;
        frame.origin.y = 0;
        controller.view.frame = frame;
        [scrollView addSubview:controller.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-12T00:28:06+00:00Added an answer on June 12, 2026 at 12:28 am

    You have some options, but I think if your data is posting a notification that it’s been updated, you should have the view controller for each page be responsible for updating the elements of their view. So –

    1. Have each view controller subscribe to the notification you describe with NSNotificationCenter‘s addObserver:selector:name:objet method.
    2. Implement the notification handler whose selector you passed to addObserver... to update the view based on the changes.

    Hope this helps!

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

Sidebar

Related Questions

I have a scrollview that shows different images as it's scrolled through the pages,
I have a simple page control set up with two different pages. I have
I have a GridView inside of a LinearLayout inside of a ScrollView that pages
I have an ScrollView for display PDF Pages. When I scroll the this shows
I have a ScrolLView that wraps a ViewFlipper. The content in the ViewFlipper is
As said in the title, I have a scrollview that should be listening for
I have a scrollview control that has a StackPanel (Orientation=Vertical) UI Element inside of
I have a scrollview (IBOutlet); in that scrollview I have added an imageview. I
I know that ScrollView can have only one Child but in my case I
I have an app that shows a series of UIImageView s on a ScrollView

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.