Skip to content

Add Page Control Support (colored dots)#658

Open
MujtabaFR wants to merge 3 commits into
nicklockwood:masterfrom
MujtabaFR:pageControl
Open

Add Page Control Support (colored dots)#658
MujtabaFR wants to merge 3 commits into
nicklockwood:masterfrom
MujtabaFR:pageControl

Conversation

@MujtabaFR

Copy link
Copy Markdown

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

jyounus commented Aug 25, 2015

Copy link
Copy Markdown

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
Copy Markdown
Owner

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

@nicklockwood

Copy link
Copy Markdown
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