uipageviewcontroller

Navigating back to FragmentPagerAdapter the listFragment is empty

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 04:30:57
问题 I don't see the ListFrangment on FragmentPageAdapter after reload the fragment. I have a sliding menu with 3 options, when I click a one options, the fragment change for FragmentPageAdapter and load the ListFragment in a tab. The problem starts When I click again in the same option... the fragment change but the loaded fragment is empty, any list... Does anyone know that can happen? the code is: is a code exemple.. The code on call a FragmentPageAdapter... public class MyListaCompra extends

How to make UIPageViewController background translucent?

回眸只為那壹抹淺笑 提交于 2019-12-24 01:44:42
问题 I search on the web and found similar answers like this( How do I make the bottom bar with dots of a UIPageViewController translucent?) but it doesn't solve my problem. Here is my code // PageControl Layout UIPageControl *pageControl = [UIPageControl appearance]; pageControl.pageIndicatorTintColor = [UIColor lightGrayColor]; pageControl.currentPageIndicatorTintColor = [UIColor blackColor]; pageControl.backgroundColor = [UIColor clearColor]; // pageControl.frame = CGRectMake(5,5,305,400);

Swift: How to programatically advance a UIPageViewController that is inside a Container View?

浪尽此生 提交于 2019-12-24 01:14:20
问题 I have one ViewController that contains a button and two image views that I would like to stay permanently, and a PageViewController that swipes through three other ViewControllers, and this all works well, however what I can't figure out how to do is how to go to the next slide programatically when the button is pressed. Here's what my PageController class looks like (based on Fattie's very helpful answer here: UIPageViewController and storyboard): class PageController: UIPageViewController,

Disable swipe gesture in UIPageViewController

孤人 提交于 2019-12-23 15:32:43
问题 I have 3 ViewControllers in one ViewController ViewPagerController = self -> it is a viewController and has UIPageViewController init ProgramQuestionViewController = it based from ViewPagerController QuestionViewController = my content view it is shown in the middle of ProgramViewController this is my ViewPagerController @interface ViewPagerController () <UIPageViewControllerDataSource, UIPageViewControllerDelegate, UIScrollViewDelegate,UIGestureRecognizerDelegate> { NSMutableArray

UIPageViewController and landscape

我们两清 提交于 2019-12-23 12:58:08
问题 I have been trying the following and nothing is working NSDictionary *pageViewOptions = [NSDictionary dictionaryWithObjectsAndKeys:UIPageViewControllerOptionSpineLocationKey, [NSNumber numberWithInteger:UIPageViewControllerSpineLocationMid],nil]; NSLog(@"pageViewOptions :%@",pageViewOptions); self.pageViewController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStylePageCurl navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal

How can I show/hide the status bar on a pageViewController using tap gesture (iOS8 / Swift)

独自空忆成欢 提交于 2019-12-23 10:09:16
问题 Looking through all the solutions given to similar questions, I have been trying to get the statusBar to show/hide with a tap gesture. I have set View controller-based status bar appearance = NO in the plist. I have tried the following code in my DataViewController (page view controller) AND in the RootViewController : let app = UIApplication.sharedApplication() app.setStatusBarHidden(true, withAnimation: UIStatusBarAnimation.Fade) and it doesn't work. This is embedded in a UITabBarController

Swift 2: "Bool' is not convertible to 'BooleanLiteralConvertible'

烈酒焚心 提交于 2019-12-23 09:26:48
问题 I created an app in XCode 6 . Today I downloaded XCode 7 and it had updated my app to Swift 2 . There were a lot of errors, but now there is only one that I can't solve. I don't know why, but Xcode doesn't like any Bool option for animated and show this error - 'Bool' is not convertible to 'BooleanLiteralConvertible' (if you look at the function itself, you will see, that it takes exactly the Bool for animated ) var startVC = self.viewControllerAtIndex(indexImage) as ContentViewController var

UIPageViewController has strange size

▼魔方 西西 提交于 2019-12-23 07:12:31
问题 I am using a UIPageViewController in my app. It works quite well, but when I turn pages, the next page seems to get initialized in a frame that is bigger than the screen: While turning the page, only a part of the view of the next viewController fits on the screen. I am initializing the UIPageViewController in viewDidLoad and started to log the frames of the PageVC , its subviews and the parentVC . Every frame seems to be okay, only the UIPageViewController' s frame, which I log in

Cycling from last to first (and vice versa) with UIPageViewController

邮差的信 提交于 2019-12-22 11:33:30
问题 I have two view controllers, let's call them transmit and receive. They are instantiated from storyboard in my parent view controller's viewDidLoad , and the first one is initially added to a UIPageViewController . I've also set up a data source for the page view controller, with the following methods: - (UIViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerAfterViewController:(UIViewController *)viewController { if ([viewController class] ==

UIPageViewController and off screen orientation changes

旧街凉风 提交于 2019-12-22 10:39:06
问题 My app is a tab bar application running on iPad. One of the tabs contains a UIPageViewController, which I implemented pretty much as per the tutorial here: Implementing UIPageViewController programmatically – without storyboarding. Everything works great, including rotation. However there is a problem - if I go to the tab containing the page view controller, then navigate to a different tab and change the orientation. Then navigation back to the tab containing the page view controller, it is