• 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: How is one supposed to use a UIPageViewController in a storyboard?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How is one supposed to use a UIPageViewController in a storyboard?


  • Subject: Re: How is one supposed to use a UIPageViewController in a storyboard?
  • From: Rick Mann <email@hidden>
  • Date: Tue, 24 Sep 2013 17:28:28 -0700

On Sep 24, 2013, at 17:14 , Fritz Anderson <email@hidden> wrote:

> Put an identifier on the embed segue, and listen for it in the parent controller's prepareForSegue:sender:. The segue that comes into the method will get you the contained controller.

Ah, that's how to get at it.

> I'm surprised it's subclassable; my memory was that it wasn't, and I beat up on a junior programmer for doing it. But he was using the page-view controller as its own data source, and besides he needed a beating on general principles.

It's subclassable in the same way UITableViewController is subclassable, and I think it makes a lot of sense for it to be its own datasource and delegate, just like a UITableViewController is usually for a UITableView.

Perhaps there should be a UIPageView to make the analogy more complete.

The problem I have is that I have to create the thing programmatically to make it useful. But a more capable IB would let me do this all in IB. One thing it would need to support is wiring IBOutlets across scenes. There can also be a distinction between static and dynamic page view content (in which case the static content could be entirely specified in IB, and dynamic view controller template scenes could be specified).


--
Rick




_______________________________________________

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


References: 
 >How is one supposed to use a UIPageViewController in a storyboard? (From: Rick Mann <email@hidden>)
 >Re: ***UNCHECKED*** How is one supposed to use a UIPageViewController in a storyboard? (From: Fritz Anderson <email@hidden>)
 >Re: ***UNCHECKED*** How is one supposed to use a UIPageViewController in a storyboard? (From: Rick Mann <email@hidden>)
 >Re: How is one supposed to use a UIPageViewController in a storyboard? (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: How is one supposed to use a UIPageViewController in a storyboard?
  • Next by Date: Re: iOS7 Controls
  • Previous by thread: Re: How is one supposed to use a UIPageViewController in a storyboard?
  • Next by thread: iOS 7 -wantsFullScreenLayout confusion?
  • Index(es):
    • Date
    • Thread