0

Container View is fixed with Bottom half of the screen, On Button click current container view will replace with the new View Controller. Each sub view have a different size in height. Sub view Scroll is not working. I checked with many answers but solutions found. The code is

    UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
    UIViewController *viewController = nil;
    viewController = [storyBoard instantiateViewControllerWithIdentifier:@"First"];
    // lets add it to container view
    [viewController willMoveToParentViewController:self];
    [self.containerViewController addSubview:viewController.view];
    [self addChildViewController:viewController];
    [viewController didMoveToParentViewController:self];
  • It is not clear to me what is the result you'd like to achieve. Which view is meant to be scrolled? – il3v Aug 24 '18 at 10:45
  • Include new ViewController inside a ContainerView of height Size 500 which have many button widgets, the hidden portion of the ViewController can't scroll to upwards mean to visible region on the device. – user2627142 Aug 27 '18 at 05:27
  • But the code you provided only instantiates and shows a childviewcontroller, it does not implement any scrolling. How is it supposed to scroll? – il3v Aug 27 '18 at 06:45
  • Thanks for reply I had Solved this issue – user2627142 Aug 27 '18 at 08:27
  • Care to share your solution? – il3v Aug 27 '18 at 08:33

0 Answers0