uipageviewcontroller

How to change UIPageViewController direction of paging curl animation

一世执手 提交于 2019-11-27 18:46:41
问题 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. 回答1: 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

Hide dots from UIPageViewController

蹲街弑〆低调 提交于 2019-11-27 18:40: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; [[self.pageController view] setFrame:[self.view bounds]]; BSItemPageViewController *initialViewController =

How do I make the bottom bar with dots of a UIPageViewController translucent?

99封情书 提交于 2019-11-27 17:03:29
I'm in the process of making a tutorial, and I'm trying to emulate the style of Path's tutorial like so: http://www.appcoda.com/wp-content/uploads/2013/06/UIPageViewController-Tutorial-Screen.jpg My issue is that if set the delegate method as so: - (NSInteger)presentationCountForPageViewController:(UIPageViewController *)pageViewController { // The number of items reflected in the page indicator. return 5; } Then I get this stupid black bar under the dots: http://i.stack.imgur.com/pUEdh.png Is there a way to make this bar translucent in a way thats similar to setting a UINavigationBar to

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

白昼怎懂夜的黑 提交于 2019-11-27 16:05:21
问题 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

Using UIPageViewController with swift and multiple view controllers

丶灬走出姿态 提交于 2019-11-27 11:30:02
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 attributes inspector. FirstViewController is the root view controller of the app I want firstViewController

How to put the UIPageControl element on top of the sliding pages within a UIPageViewController?

…衆ロ難τιáo~ 提交于 2019-11-27 11:11:22
Regarding to this tutorial by AppCoda about how to implement a app with UIPageViewController I'd like to use a custom page control element on top of the pages instead of at the bottom. When I just put a page control element on top of the single views which will be displayed, the logical result is that the control elements scrolls with the page view away from the screen. How is it possible to put the control element on top of the views so the page views are full screen (like with an image) so the user can see the views underneath the fixed control element? I attached an example screenshot -

Refresh UIPageViewController - reorder pages and add new pages

*爱你&永不变心* 提交于 2019-11-27 10:52:32
I have a UIPageViewController which I am providing page data for using an implementation of UIPageControllerDelegate and UIPageControllerDataSource . It's all working fine, but I want to be able to add items to the page data and reorder the page data. If a user has already got to the last of the pages, and then I add an item, they can't get to the next page because viewControllerAfterViewController: has already been called. If they scroll back one and then forward two they can get to the new page fine, so the data is setup correctly. How can I tell the UIPageViewController to refresh its store

Content pushed down in a UIPageViewController with UINavigationController

强颜欢笑 提交于 2019-11-27 09:46:13
问题 UPDATE 2 I've been running and testing my app in the iOS Simulator using a 4-inch device. If I run using a 3.5-inch device the label doesn't jump. In my .xib, under Simulated Metrics, I have it set as Retina 4-inch Full Screen. Any idea why I'm only seeing this problem on a 4-inch device? UPDATE 1 In IB, if I choose "Navigation Bar" in Simulated Metrics, my label still jumps. The only way I can get my label to render correctly on the first screen is to not set a navigation controller as my

Disable bounce effect in UIPageViewController [duplicate]

拈花ヽ惹草 提交于 2019-11-27 09:14:21
This question already has an answer here: Disable UIPageViewController bounce 9 answers I have implemented a UIPageViewController that contains two pages. On the right most page, I am able to swipe to the right, and pull the page back so that when I release, it bounces back. The same thing occurs on the left page when I swipe to the left. (The bouncing is like what happens when you reach the bottom of a safari page) Is there a way to disable the bounce effect? Thanks! dgatwood Thus far, none of the answers actually work fully. The edge case that they all fail on is this: Scroll to page 2.

Create partial-screen UIPageViewController programmatically

与世无争的帅哥 提交于 2019-11-27 09:06:44
问题 I am trying to create a scrolling pageviewcontroller that only takes up part of my screen. I have successfully done this using Storyboard and a ContainerView object, but I now need to replicate the functionality creating the project programmatically. It seems that ContainerView is not something that I can create using swift, so I tried to do this using a UIView to act as a container that I tried to do addSubview with a UIPageViewController, but I get the error cannot convert value of type