Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Page Control Support (colored dots) #658

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add Page Control Support (colored dots) #658

wants to merge 3 commits into from

Conversation

MujtabaFR
Copy link

Add small colored dots to show number of items and highlight current item

a

New files:

  • PageControl.h
  • PageControl.m

New Properties :

  • BOOL pageControlEnabled
    // to Enable/Disable pageControl (Default YES)
  • UIColor *pageControlDotColorCurrentPage
    // color of the current page dot (Default WHITE)
  • UIColor *pageControlDotColorOtherPage
    // color of the other pages dots (Default transparent white)

Add small dots to show items number and current item

New Properties :

BOOL pageControlEnabled // to Enable/Disable pageControl (Default YES)
UIColor *pageControlDotColorCurrentPage // color of the current page
dot (Default WHITE)
UIColor *pageControlDotColorOtherPage // color of the other pages dots
(Default transparent white)
@MujtabaFR MujtabaFR changed the title Add Page Control (dots) Add Page Control Support (dots) Aug 14, 2015
@MujtabaFR MujtabaFR changed the title Add Page Control Support (dots) Add Page Control Support (colored dots) Aug 14, 2015
@jyounus
Copy link

jyounus commented Aug 25, 2015

Hey,

How did you get the different sizes working like in your screenshot? Left and right views are smaller, the middle one is bigger. Any chance you could submit a PR for that functionality as well please?

@nicklockwood
Copy link
Owner

@jyounus I assume he's just using iCarouselTypeRotary, or equivalent.

@nicklockwood
Copy link
Owner

It doesn't really make sense to make this part of iCarousel. You can add your own page control using UIPageControl (or my own FXPageControl, of you want more styling options) and hooking it up to the iCarouselDelegate, and that way you are constrained to a particular set of dot styles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants