uipageviewcontroller

UIPageViewController programmatically turning pages does not update Page Indicator

霸气de小男生 提交于 2020-01-14 16:34:36
问题 When I programmatically turn the page in a UIPageViewController using a method similar to this answer, the Page Indicators are not updated. Swiping to the next/previous page updates the page indicators as expected. What do I need to do to update the Page Indicators when programmatically turning the page? i.e. How do I set the current "index" after programmatically changing the page so the Page Indicators know which page indicator to show as active? I noticed in the documentation, the

Show UIPageViewController that doesn't take whole screen

我的未来我决定 提交于 2020-01-14 09:54:14
问题 I'd like to show a book on landscape iPhone that would use page curl from UIPageViewController, but I'd like book not to take the whole screen. To clarify, let's say background is a wooden desk image and there is book on it that can be browsed using UIPageViewController and page curl but only book pages participate in page curl, background is completely static. Is this possible? 回答1: Yes it is possible. I have a UIPageViewController using on half the screen for example. The secret is to add

UIPageViewController delegate method not called

允我心安 提交于 2020-01-14 09:07:34
问题 In my application I have a RootViewController (UIPageViewController), a FirstController (UIViewController) and a SecondController (UIViewController). The two views inside the two UIViewControllers scroll over the RootViewController . In my RootViewController.h: @interface RootController : UIPageViewController <UIPageViewControllerDataSource, UIPageViewControllerDelegate> But when I scroll between different views delegate methods like: -(void) pageViewController:(UIPageViewController *

Access the UIPageControl created by iOS6 UIPageViewController?

≯℡__Kan透↙ 提交于 2020-01-11 05:04:49
问题 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.

Access the UIPageControl created by iOS6 UIPageViewController?

强颜欢笑 提交于 2020-01-11 05:04:10
问题 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.

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

﹥>﹥吖頭↗ 提交于 2020-01-09 04:14:06
问题 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

Go to the next Page programmatically within a UIPageViewController

£可爱£侵袭症+ 提交于 2020-01-06 19:50:38
问题 I have a rootViewController which is basically my pageViewController which implements all the page controller protocol functions. I have already successfully implemented the whole pageViewController with a pageControl that correctly shows the current Page number. On the first page contained within the rootViewController, I have a viewController in which there are multiple textFields which have to be filled in with a pickerView. I have also created an inputAccessory toolBar which accompanies

How to show filtered table view in iOS?

旧时模样 提交于 2020-01-06 08:27:13
问题 I have 2 tableView s at the moment. One is a basic tableView which shows cells and if selected, it goes into a detailed viewController . I created a new viewController to create a filtered page view. I populate my page view with a plist. I managed to create a filter but don't know how to proceed from here. This is what I have: - (IBAction)ingredientsAddButton:(UIButton *)sender { int j=0; onemsiz.text=ingredientTextField.text; ingredientText=onemsiz.text; NSLog(ingredientText); NSString *path

Load childViewController to scrollview parent with a button

扶醉桌前 提交于 2020-01-06 06:58:21
问题 I'm using the PageViewController (https://www.cocoacontrols.com/controls/pageviewcontroller) to create a Magazine App similar to Wired. I've used this code on CustomPagerViewController to load the childview's: - (IBAction)btn_index:(id)sender { NSInteger currentPage = 3; CGPoint offset = CGPointMake(currentPage * self.scrollView.frame.size.width, 0); [self.scrollView setContentOffset:offset animated:YES];} But I need several buttons on the indexviewcontroller to load the correct views and

Using UIPageView images to open ViewController w/ NavigationController

限于喜欢 提交于 2020-01-06 06:55:15
问题 I am trying to make three images in a UIPageView to open three different NavigationController . Here is my layout as of right now. I connected three Custom Segue to each NavigationController and under ContentViewController , I added the following @IBAction method: @IBAction func navJns(sender: AnyObject?){ let storyboard = UIStoryboard(name: "Nav", bundle: nil) let controller = storyboard.instantiateViewControllerWithIdentifier("Jeans") as! Jeans self.modalPresentationStyle =