Note that there are some explanatory texts on larger screens.

plurals
  1. POpage-based app with uitableview; how to show detail view and show another data in the table when goes to next page?
    primarykey
    data
    text
    <p>I have page-based app. On each page I have 3 uibuttons at the top, uiscrollview with alphabet (uibuttons to sort data in uitable) at the right and uitableview at the center. How to show cell's detail view? If it is necessary to add uinavigationcontroller I can't do this. If I adds it, it disables interaction with my table, buttons and scrollview. And another question is how to show new data in tableview and scrollview when goes to next page??</p> <p>I have rootViewController class and DataViewController class. rootViewController listing:</p> <pre><code>@interface RootViewController () @property (readonly, strong, nonatomic) ModelController *modelController; @end @implementation RootViewController @synthesize pageViewController = _pageViewController; @synthesize modelController = _modelController; @synthesize navContr = _navContr; - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // Configure the page view controller and add it as a child view controller. //[self presentModalViewController:navContr animated:YES]; self.pageViewController = [[[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStylePageCurl navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal options:nil] autorelease]; self.pageViewController.delegate = self; DataViewController *startingViewController = [self.modelController viewControllerAtIndex:0 storyboard:self.storyboard]; NSArray *viewControllers = [NSArray arrayWithObject:startingViewController]; [self.pageViewController setViewControllers:viewControllers direction:UIPageViewControllerNavigationDirectionForward animated:NO completion:NULL]; self.pageViewController.dataSource = self.modelController; [self addChildViewController:self.pageViewController]; [self.view addSubview:self.pageViewController.view]; self.navContr = [[UINavigationController alloc] initWithRootViewController:self.pageViewController]; [self.view addSubview:self.navContr.view]; // Set the page view controller's bounds using an inset rect so that self's view is visible around the edges of the pages. CGRect pageViewRect = self.view.bounds; self.pageViewController.view.frame = pageViewRect; [self.pageViewController didMoveToParentViewController:self]; // Add the page view controller's gesture recognizers to the book view controller's view so that the gestures are started more easily. self.view.gestureRecognizers = self.pageViewController.gestureRecognizers; for (UIGestureRecognizer *recognizer in self.pageViewController.gestureRecognizers){ if ([recognizer isKindOfClass:[UITapGestureRecognizer class]]){ [recognizer setEnabled:NO]; } } } </code></pre> <hr> <p>After few manipulations it works but I need help to get it work fine!</p> <p>So now it looks like this</p> <p><img src="https://i.stack.imgur.com/jZ60q.png" alt="one"> <img src="https://i.stack.imgur.com/sIut5.png" alt="two"></p> <p>Next question: how do I remove the brown space at the top???</p> <hr> <p>::UPDATE::</p> <p>Problem solved. It needs just to set y-axis position of UINavigationController to -20 ;)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload