• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UIPageViewController page index woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UIPageViewController page index woes


  • Subject: Re: UIPageViewController page index woes
  • From: Daniel Höpfl <email@hidden>
  • Date: Thu, 26 Sep 2013 00:27:05 +0200

Hi,

On 25.09.2013 03:25, Rick Mann wrote:
> I've implemented the two page index methods in the dataSource, but
> I'm not getting a page indicator. Where does it appear, near the
> bottom? I see my methods are being called.
>
> I also don't know how to determine the current page index.
> -presentationIndexForPageViewController: should return an NSInteger,
> but I don't know how to tell which view controller is currently being
> shown. I'm not even sure why I have to implement this, since just
> telling it the total count should be enough for it to figure things
> out.
>
> Any ideas? The example code doesn't use the page index.

Did you set the transition style to
UIPageViewControllerTransitionStyleScroll?

The documentation says:

------------------------------------------------------------
If both of the methods in “Supporting a Page Indicator” are implemented
*and* the page view controller’s transition style is
UIPageViewControllerTransitionStyleScroll, a page indicator is visible.
------------------------------------------------------------

Bye,
   Daniel
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: UIPageViewController page index woes
      • From: Rick Mann <email@hidden>
References: 
 >UIPageViewController page index woes (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Silent Self-Caught Exceptions vs. "All Exceptions" Breakpoint
  • Next by Date: NSValidatesImmediatelyBindingOption confustication
  • Previous by thread: UIPageViewController page index woes
  • Next by thread: Re: UIPageViewController page index woes
  • Index(es):
    • Date
    • Thread