Follow

Configure Vertical Scrolling or Paging

Vertical Scrolling

Vertical scrolling (allowing scrolling up and down within a page, rather than left to right to change pages) is on by default. Vertical scrolling is enabled by setting the scrollEnabled property for the KGPagedDocControl. The best place to do this is in viewDidLoad, where the page control’s other properties are set:

- (void)viewDidLoad {
  [super viewDidLoad];
  ...
  [pageControl setScrollEnabled:YES];
  ...
}

Vertical Paging

You can snap vertical scrolling to page boundaries. This is different to to Vertical Paning (as described in Managing content layout, which takes paned content and lays it out vertically). Vertical paging is enabled much like vertical scrolling is:

- (void)viewDidLoad {
  [super viewDidLoad];
  ...
  [pageControl setVerticalPagingEnabled:YES];
  ...
}

Note that turning on vertical paging automatically turns on vertical scrolling.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk