uipageviewcontroller

UIScrollView cancels UIPageViewController gestures when scrolling

删除回忆录丶 提交于 2019-12-01 06:31:56
I have a UIPageViewController that handles turning the pages of my "book". However, each book page is a ViewController with a UIScrollView as a subview . The UIScrollView is only able to scroll vertically due to the contentSize . The problem is that while the user scrolls the scrollview vertically, as the scrollview is still scrolling/decelerating the user can not turn the page. A very easy way to see this is to scroll the page and then try to tap the edge of the view. This would normally change the page, and it does change the page when the scrollview is not moving. However, when it is moving

change pages in UIPageViewController Automatically with timer in swift 3?

只谈情不闲聊 提交于 2019-12-01 06:06:41
问题 I have UIPageViewController that Contains 4 view Controllers I set the timer for changing view controllers automatically(going to the next view controllers) - This timer and method will work But the problem is that It works Just for first Slide and when the app will run and after 5 seconds the UIPageViewController will show the second slide But after that nothing will happen ! This Is the Code That I used lazy var VCArr : [UIViewController] = { return [self.VCInstance(name : "VC1"), self

How to add an Array of pages to a UIPageViewController in iOS 5?

狂风中的少年 提交于 2019-12-01 05:49:02
问题 Does anyone know what am I missing in order to add manually my own view controllers to the UIPageViewController methods? I currently have this and I do not know how to proceed: NSDictionary *pageViewOptions = [NSDictionary dictionaryWithObjectsAndKeys:UIPageViewControllerOptionSpineLocationKey, [NSNumber numberWithInteger:UIPageViewControllerSpineLocationMin], nil]; self.pageViewController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStylePageCurl

Access the UIPageControl created by iOS6 UIPageViewController?

跟風遠走 提交于 2019-12-01 04:46:05
I'm using a UIPageViewController with Navigation set to Horizontal, Transition Style set to Scroll (in InterfaceBuilder), and no spine. Which gives me a lovely UIPageControl integrated. Now I want to be able to toggle whether it's displaying (because there's artwork underneath it). I've tried setting presentationCountForPageViewController and presentationIndexForPageViewController to return 0 when the UIPageControl is supposed to be hidden, but those methods aren't being called when I want. Pausing for stacktrace, I see them being called by [UIPageViewController

Preventing the white gap that appears on swiping UIPageViewController

风流意气都作罢 提交于 2019-11-30 23:46:09
I have implemented the UIPageViewController in this manner: GalleryViewController : is the container of the PageViewController PageViewController : is the pageViewController which I added it to GalleryViewController as a subview. PageContentViewController : I put in it UIImageView to be the content of the page view controller. Everything is going well, but when I swipe between images, weird things happen. There is white gap appears upside. The weird thing is when I finish scrolling it stretches automatically. This is the code of GalleryViewController , which is the container of the

Disable UIPageViewController bouncing - Swift [duplicate]

て烟熏妆下的殇ゞ 提交于 2019-11-30 20:32:20
This question already has an answer here: Disable UIPageViewController bounce 9 answers I've been making a sample app with scrolling between UIViewControllers but the point is i want to disable the bouncing effect at the end of scrolling and when going back to the first UIViewController . here is my code : class PageViewController: UIPageViewController,UIPageViewControllerDataSource, UIPageViewControllerDelegate{ var index = 0 var identifiers: NSArray = ["FirstNavigationController", "SecondNavigationController"] override func viewDidLoad() { self.dataSource = self self.delegate = self let

UIPageViewController and UIPageControl transparent background color - iOS

前提是你 提交于 2019-11-30 19:04:05
I'm making a tutorial when app launches for the first time and using UIPageViewController for that. Everything is working fine but the background color of UIPageViewController is not getting transparent. It's always black, as shown below: Here's how I'm adding the UIPageViewController (in a tabbar controller) .h file: @interface CHMainTabViewController : UITabBarController <UIPageViewControllerDataSource> @property (strong, nonatomic) UIPageViewController *pageViewController; @end .m file (in viewDidLoad ): // Create page view controller self.pageViewController = [self.storyboard

Preventing the white gap that appears on swiping UIPageViewController

 ̄綄美尐妖づ 提交于 2019-11-30 18:56:40
问题 I have implemented the UIPageViewController in this manner: GalleryViewController : is the container of the PageViewController PageViewController : is the pageViewController which I added it to GalleryViewController as a subview. PageContentViewController : I put in it UIImageView to be the content of the page view controller. Everything is going well, but when I swipe between images, weird things happen. There is white gap appears upside. The weird thing is when I finish scrolling it

Cannot Impliment UITextview inside a UIPageViewController

一曲冷凌霜 提交于 2019-11-30 14:15:53
问题 I have a strange issue , I have a page app in which one page I had used a UITextView , but when I tap on the UITextView it moves to the next page, can't write anything on it. There is no issue when I use UIPageViewControllerTransitionStylePageCurl . The only issue is with UIPageViewControllerTransitionStyleScroll . Anyone know the solution? please help me 回答1: I ran into the same issue myself, and it appears that it's a consequence of some default behavior that occurs whenever a UITextField

How to solve “Failed to determine navigation direction for scroll” bug

别说谁变了你拦得住时间么 提交于 2019-11-30 11:51:21
问题 My most frequent bug has "Failed to determine navigation direction for scroll" for reason, any idea about how I could solve it? Here is the last Exception Backtrace: 1. CoreFoundation __exceptionPreprocess + 131 2. libobjc.A.dylib _objc_exception_throw + 39 3. CoreFoundation +[NSException raise:format:] + 1 4. Foundation -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 91 5. UIKit __54-[_UIQueuingScrollView _didScrollWithAnimation:force:]_block_invoke + 221 6.