Re: Customizing UIPageViewController during init

2017-05-24 Thread Quincey Morris
s, not properties, and init code will generally assume that all instance variables are nil or 0. What you can theoretically do is allocate *another* instance of UIPageViewController, initialize with the other init method, and return that instance instead of the “self” you started with. However, it

Customizing UIPageViewController during init

2017-05-24 Thread Steve Mills
I have a UIPageViewController subclass that's loaded from a storyboard. Depending on user settings, it will display either 1 or 2 pages at a time. There doesn't seem to be a way to manually set the spine location programmatically (except for the deleg

Re: UIPageViewController not resizing its child view controllers on rotation

2015-06-30 Thread Ben Kennedy
> On 30 Jun 2015, at 7:30 am, Devarshi Kulshreshtha > wrote: > > Though pagination control has resized properly, view of added view > controller has not resized properly. You haven't said so, but I presume that the UIPageControl belongs to your root view, and not pagesContainerViewController's

UIPageViewController not resizing its child view controllers on rotation

2015-06-30 Thread Devarshi Kulshreshtha
I am trying to use UIPageViewController with view controllers added to it, problem is if I launch the app in portrait mode it appears perfectly like this: http://i.stack.imgur.com/ryT5d.png but if I rotate the device to landscape mode it appears like this: http://i.stack.imgur.com/GnuYH.png

Re: UIPageViewController page index woes

2013-09-28 Thread Noah Desch
So apparently the page control is entirely transparent by default. Try adding this to your app delegate's didFinishLaunching... method: UIPageControl * pageControl = [UIPageControl appearance]; pageControl.pageIndicatorTintColor = [UIColor lightGrayColor]; pageControl.currentPageIndicatorTintCol

Re: UIPageViewController page index woes

2013-09-26 Thread Noah Desch
I'm having the same issue. When I dive into the view hierarchy in the debugger I see the page control inside the UIPageViewController's view, but it's frame is {0,0,0,0}. Noah Desch > On Sep 25, 2013, at 7:11 PM, Rick Mann wrote: > > >> On Sep 25, 2013, at 15:27 , Daniel Höpfl wrote: >> >

Re: UIPageViewController page index woes

2013-09-25 Thread Rick Mann
On Sep 25, 2013, at 15:27 , Daniel Höpfl wrote: > On 25.09.2013 03:25, Rick Mann wrote: >> Any ideas? The example code doesn't use the page index. > > Did you set the transition style to > UIPageViewControllerTransitionStyleScroll? Yup :-) -- Rick _

Re: UIPageViewController page index woes

2013-09-25 Thread Daniel Höpfl
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. > -presenta

UIPageViewController page index woes

2013-09-24 Thread Rick Mann
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 NSI

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

2013-09-24 Thread Rick Mann
On Sep 24, 2013, at 17:14 , Fritz Anderson 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 su

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

2013-09-24 Thread Fritz Anderson
On 24 Sep 2013, at 1:42 PM, Rick Mann wrote: > On Sep 24, 2013, at 10:38 , Fritz Anderson wrote: > >> On 24 Sep 2013, at 3:03 AM, Rick Mann wrote: >> >>> UIPageViewController seems very clunky. On the surface, it looks similar to >>> UITableViewCont

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

2013-09-24 Thread Fritz Anderson
On 24 Sep 2013, at 1:42 PM, Rick Mann wrote: > What is "***UNCHECKED***"? I beg pardon. The virus checker on my mail server went on strike, and is decorating subject lines to let me know. I'll respond to the substance of your message soon. — F ___

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

2013-09-24 Thread Rick Mann
What is "***UNCHECKED***"? On Sep 24, 2013, at 10:38 , Fritz Anderson wrote: > On 24 Sep 2013, at 3:03 AM, Rick Mann wrote: > >> UIPageViewController seems very clunky. On the surface, it looks similar to >> UITableViewController, but in fact, it behaves very diff

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

2013-09-24 Thread Fritz Anderson
On 24 Sep 2013, at 3:03 AM, Rick Mann wrote: > UIPageViewController seems very clunky. On the surface, it looks similar to > UITableViewController, but in fact, it behaves very differently. There's no > view associated with it, nor can you add a view to it (in the storyboard &g

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

2013-09-24 Thread Rick Mann
Storyboards let me drop in a UIPageViewController, but the Xcode 5 template creates it programmatically instead. UIPageViewController seems very clunky. On the surface, it looks similar to UITableViewController, but in fact, it behaves very differently. There's no view associated with it

Re: UIPageViewController

2013-06-17 Thread koko
On Jun 17, 2013, at 12:33 PM, Laurent Daudelin wrote: > Are you using a navigation controller? Based on your description, I think you > should. I have done the following: UIPageViewController *pageViewController = [[UIPageViewController

Re: UIPageViewController

2013-06-17 Thread Laurent Daudelin
Are you using a navigation controller? Based on your description, I think you should. If so, you push the UIPageViewController like any other view controller: [self.navigationController pushViewController:thePageViewController animated:YES]. If you’re instantiating the UIPageViewController

UIPageViewController

2013-06-17 Thread koko
I am having difficulty displaying a UIPageViewController in full screen. Some details: 1. The app is Master/Detail 2. A master selection causes a detail view display in a UICollectionView 3. A different Master selection changes the detail view UIColllectionView. 4. Make a multiple selection in