uipageviewcontroller

UIPageViewController with different ViewControllers, right way?

拟墨画扇 提交于 2019-12-18 17:33:31
问题 Basically, I have a Table View Controller and a normal View Controller, I want to make it so that I can swipe between the view controllers like on the home screen of app (obvious same type of view controller). But the thing I am finding is that the UIpageviewcontroller is usaully used when you have multiple views of the same type of viewcontroller for example swiping between pictures, you could just set an index in the class and an array of images relating to the index and set it up that way.

UIPageViewController within NavigationController

℡╲_俬逩灬. 提交于 2019-12-18 10:14:41
问题 I've read every tutorial I've found about UIPageViewController, but they show just basics, I'd like to create something like new twitter app has: UIPageViewController is embedded into Navigation controller, title of navigation bar is based on current page and those page dots are there as well, user can tap on item on current page(item from table view/collection view) to see detail. I was able to come up with something similar, each page had collection view, and showing detail of some item was

RTL languages uipageviewcontroller animation

邮差的信 提交于 2019-12-18 05:07:26
问题 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

UIPageViewController memory leak

时光毁灭记忆、已成空白 提交于 2019-12-17 23:14:23
问题 It seems that UIPageViewController is holding the initial content view controller forever. For example: DataViewController *startingViewController = [self.modelController viewControllerAtIndex:0 storyboard:self.storyboard]; NSArray *viewControllers = @[startingViewController]; [self.pageViewController setViewControllers:viewControllers direction:UIPageViewControllerNavigationDirectionForward animated:NO completion:NULL]; self.pageViewController.dataSource = self.modelController; The

iOS Swift: UIPageViewController - Turning page programmatically

懵懂的女人 提交于 2019-12-17 22:45:53
问题 I have a UIPageViewController, which works fine when we swipe left or right to turn pages. class ViewController: UIViewController, UIPageViewControllerDataSource { ... } Now I intend to provide Previous/Next button on the page too, so that pages can be turned by clicking on these buttons. How can I trigger the swipe left/right behaviour OR turn pages programmatically? Note This is a question for Swift language, not Objective-C. 回答1: Use this funtion and set the transition style for the

Tell When a UIPageViewController is Scrolling (for Parallax Scrolling of an Image)

巧了我就是萌 提交于 2019-12-17 21:56:11
问题 I am trying to make an effect similar to that found in the new Yahoo weather app. Basically, each page in the UIPageViewController has a background image, and when scrolling through the page view, the Image's location only scrolls about half the speed. How would I do that? I thought I could use some sort of Delegate Method in the UIPageViewController to get the current offset and then update the images like that. The only problem is that I cannot find anyway to tell if the

UIPageViewController setViewControllers, UIPageControl not showing right current number

陌路散爱 提交于 2019-12-17 21:29:32
问题 I'am using a UIPageViewController with horizontal scrolling... as long as the user scrolls, the UIPageControl works correctly, problem occurs when jumping programmatically to next or previous page [self.pageViewController setViewControllers:@[[self viewControllerWithIndex:index]] direction:UIPageViewControllerNavigationDirectionReverse animated:YES completion:nil]; Than the index of the UIPageControl isn't right (i would provide the index by myself, but cannot access the UIPageViewController

How to remove the bottom gap of UIPageViewController

孤者浪人 提交于 2019-12-17 18:43:42
问题 I am using UIPageViewController to show images full screen, the UIViewController which is added to UIPageController as a sub view / child has the images being showed using ImageView. Problem is the images arent comming fullscreen, instead the pagecontrol view's donts are appearing at the bottom and that space is completely wasted. Please check the image attached. Here is the code self.pageController = [[UIPageViewController alloc] initWithTransitionStyle

Hide dots from UIPageViewController

你离开我真会死。 提交于 2019-12-17 15:34:56
问题 I would like to do to a pretty simple thing. Just remove all the dots, and the bar on the bottom of the UIPageViewController. This is the setup: I have a custom view controller which has UIPageViewController *pageController I display it like this: self.pageController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal options:nil]; self.pageController.dataSource = self; [

Using UIPageViewController with swift and multiple view controllers

旧城冷巷雨未停 提交于 2019-12-17 10:24:32
问题 I'm trying to utilize a UIPageViewController in a Swift app with multiple view controllers. I have 2 view controllers on my storyboard ( firstViewController and secondViewController ) that are both embedded in their own navigation controllers. They have storyboard identifiers " FirstViewController " and " SecondViewController ". I also have a page view controller on my storyboard with identifierPageView controller and set the navigation to horizontal and transition style to scroll in the