Re: UIPageViewController page index woes
Re: UIPageViewController page index woes
- Subject: Re: UIPageViewController page index woes
- From: Noah Desch <email@hidden>
- Date: Sat, 28 Sep 2013 15:16:25 -0400
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.currentPageIndicatorTintColor = [UIColor darkGrayColor];
pageControl.backgroundColor = [UIColor clearColor];
This will apply a default customization to every page control in your app. The other way to apply non-transparent colors is to loop through all the sub-views of your UIPageViewController's view and look for the one who's kindOfClass is [UIPageControl class] and set whatever colors you want on it. This *might* be a gray area in terms of using undocumented API though.
-Noah
On Sep 26, 2013, at 5:06 PM, Noah Desch <email@hidden> wrote:
> 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 <email@hidden> wrote:
>>
>>
>>> On Sep 25, 2013, at 15:27 , Daniel Höpfl <email@hidden> 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 :-)
_______________________________________________
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