uipageviewcontroller

Using View Controller from storyboard programmatically in a Page View Controller

可紊 提交于 2019-11-29 11:01:53
问题 I have an app with a storyboard. I am using several View Controller with segues to choose from a table view depending on the item selected. I want to have a page view controller in which the pages will be one or more view controller from the storyboard, even repeating them. I am trying to init the Page View Controller like this: .... self.dataSource=self; UIViewController *initialViewController =[self viewControllerAtIndex:current]; NSArray *viewControllers = [NSArray arrayWithObject

UIPageViewController disable scrolling

家住魔仙堡 提交于 2019-11-29 09:39:10
问题 I am using a UIPageViewController with transitionStyle UIPageViewControllerTransitionStyleScroll and navigationOrientation UIPageViewControllerNavigationOrientationVertical I also have a UIPanGestureRecognizer on the view and I want to disable page scrolling when the pan gesture is active. I am trying to set the following when the gesture begins: pageViewController.view.userInteractionEnabled = NO; This seems to have no effect, or it appears to work sporadically. The only other way I have

RTL languages uipageviewcontroller animation

强颜欢笑 提交于 2019-11-29 07:55:21
I know this question is typique and it was asked many times in the forum, but I still cannot solve my problem, so please if any body can help be that would be GREAT :) I am creating a book application in the arabic languages and I need to perform the transitions of the uipageviewcontroller from right to left. And thats all I have to say. One more thing (if I hadn't explain very well my self) I have the exact need as this thread: How to change UIPageViewController direction of paging curl animation but I couldn't manage to make the solution they spoke about, so if someone can explain me or give

Progress of UIPageViewController

断了今生、忘了曾经 提交于 2019-11-29 07:36:26
问题 I would like to receive updates from the uipageviewcontroller during the page scrolling process. I want to know the transitionProgress in %. (This value should update when the user move the finger in order to get to another page). I'm interested in the animation progress from one page to another, not the progress through the total number of pages. What I have found so far: There is a class called UICollectionViewTransitionLayout that have the property corresponding to what I am looking for,

UIPageViewController didFinishAnimating not called if swiped quickly

六月ゝ 毕业季﹏ 提交于 2019-11-29 05:51:20
I have a UIPageViewController that works as expected. I can scroll left and right and the delegate method didFinishAnimating is called when I scroll each direction. However, if I scroll too quickly I end up on a page where didFinishAnimating is not called, though it is called for all previous pages. Does anyone know why this might be happening? I would think that didFinishAnimating would be called on every page transition regardless (e.g., even if the turn was aborted). This bug is still here in 2017.. I tried many alternative ways.. now I gave up the hope that this will be fixed by Apple and

How to change UIPageViewController direction of paging curl animation

核能气质少年 提交于 2019-11-29 04:54:31
I need to display Arabic (Right To Left) content and couldn't find any method to rotate animation of the page curl found by UIPageViewController because basically Arabic books should be turned from Left to right. Bogdan Onu If you are supporting only portrait mode then you should look at the UIPageViewController delegate method pageViewController:spineLocationForInterfaceOrientation: and return UIPageViewControllerSpineLocationMax . But if you want to support both landscape and portrait then you could keep the default spine location animations but provide the pages in the opposite direction

UIPageViewController crashes when flipped too fast during low memory

烂漫一生 提交于 2019-11-29 02:10:47
问题 I had some memory problems due to Xcode's template for a UIPageViewController caching all the page data, so I changed it to load the pages dynamically, so now when my app receives a low memory warning, it releases the memory for page's not showing, but if the user is flipping through the pages real fast by tapping the edge of the screen, it still crashes. I'm guessing this is because it can't free the memory fast enough when didReceiveMemoryWarning gets called. If the user is flipping slowly,

iOS 8 / XCode 6 autolayout constraints applied after view appears

南楼画角 提交于 2019-11-29 01:53:56
问题 I have a project that was working just fine with XCode 5 and iOS 7, but when I recently downloaded XCode 6, I noticed some weird behavior with autolayout. I have a storyboard with a view that just has a UIImageView and two UILabels. This view gets loaded using a UiPageViewController. The UIImageView is centered horizontally and vertically in the view and there are constraints specifying the distance of the two labels from the image view. When there is a case when the storyboard and autolayout

UIPageViewController - how Can I jump to a particular page number?

不羁岁月 提交于 2019-11-29 01:32:56
I have spent almost 8 hours finding out how to jump to a particular page number in UIPageViewController... below is what my project looks like I want to make an app which looks like Ibooks--- I have taken the help from the code presented here - http://www.ioslearner.com/tag/uipageviewcontroller-sample-code/ I have made a plist and UITableView , I select the value from TableView and display the same on webView placed on UIPAgeiewController, but the problem is that only the page in web view changes and not the actual page number of the UIPageViewController.... If I narrow down my question it

UICollectionView horizontal paging with space between pages

做~自己de王妃 提交于 2019-11-28 22:58:43
问题 I'm looking for a way to replace the native UIPageViewController horizontal paging with a UICollectionView . so far i did the following: let layout = UICollectionViewFlowLayout() layout.scrollDirection = .horizontal layout.itemSize = collectionView.frame.size layout.minimumLineSpacing = 0 layout.minimumInteritemSpacing = 10 collectionView.setCollectionViewLayout(layout, animated: false) collectionView.isPagingEnabled = true collectionView.alwaysBounceVertical = false this works fine and i get