Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIPageViewController accessibility or voiceover

I'm using UIPageViewController to swipe through pages (UIViewController array). I push the page view controller on the top navigation controller.

While I start the app, I could page through all the VCs inside the page view controller. However,the "three finger swipe" on page view controller doesn't work. It just doesn't get the scroll events.

Any insight on what's going wrong here?

like image 458
Swapnil Patel Avatar asked Dec 05 '13 02:12

Swapnil Patel


1 Answers

Have you tried setting the value for view.isAccessibilityElement on the UIViewControllers in your pageViewControllers' array?

(on viewController.m/viewController.swift file) self.view.isAccessibilityElement = true

The code above should work in both Objective-C and Swift (v. 2.2 and higher, maybe lower versions as well)

like image 193
gruhls508 Avatar answered Nov 11 '22 03:11

gruhls508