The default implementation of PDF viewing using QLPreviewController is swipe pages top through bottom. Is there anyway I can make it work from left to right swipe?
QLPreviewController *previewVC = [QLPreviewController new];
previewVC.view.backgroundColor = [UIColor whiteColor];
previewVC.dataSource = self;
[self.parentViewController presentViewController:previewVC animated:YES completion:^{
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];
}];
Yes.
Add the Following Sourcecode
UI.touch.run
Then
[[UIApp.Swipe.ltr = handleall.pdf]]
In a Nutshell the First code Declares the New Touch Scheme
The 2nd One is for Inner Code
Add that to your code and restart your iOS Device
Note: May not work on all Versions of iOS
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.