-5

I want to reload a scroll view on click of a button.I also need to create animation similar to pushing a new view while reloading the scroll view with new values. Any ideas ?

Updated :

I have a main class in which i call another viewcontroller :

  • (void)viewDidLoad {
    [super viewDidLoad];
    controller = [[abc alloc]initWithNibName:@"abc" bundle:nil];
    [self displayContentController:controller];
    }

  • (void) displayContentController: (UIViewController*) content;{
    [self addChildViewController:content];
    content.view.frame = CGRectMake(0,20, 320, 1048);
    [self.view addSubview:content.view];
    [content didMoveToParentViewController:self];
    }

A button is added to this child view. I want to create a new object of child view and reload that view to the main view on button click. Is it possible !

swathy krishnan
  • 916
  • 9
  • 22
  • 1
    First, there is not reload on scroll view, second, you sir need to give us something (code), for us to be able to help you.. – 0yeoj Jun 17 '15 at 13:26
  • Agreed: You need to do some more research so that you can adequately describe what you're trying to do. I assume you meant to reload the data in a *table view* (that happens to be embedded in a scroll view), but I have no idea what you mean regarding the animation. Take the time to rework your question in a way that allows others to answer you versus its current state, which requires a crystal ball and a demonic familiar to divine. – Joshua Nozzi Jun 17 '15 at 13:39

1 Answers1

0

If you want to reload the data from a table view then you can do this with the method (void)reloadSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation with this you can do a reload with an animation. For the animations possible look in the Apple Developer Documentation.

If that does not help you, you need to rework your question.

Adarkas2302
  • 1,704
  • 2
  • 17
  • 25