Inherits from UIControl
Declared in TKPageControl.h
TKPageControl.m

Overview

TKPageControl is a reimplementation of UIPageControl with a little flair.

Properties

currentPage

The current selected page.

@property (nonatomic, assign) NSInteger currentPage

Declared In

TKPageControl.h

currentPageIndicatorTintColor

The color of the current page indicator.

@property (nonatomic, retain) UIColor *currentPageIndicatorTintColor

Declared In

TKPageControl.h

dotRadius

The circle radius of the page indicator.

@property (nonatomic, assign) CGFloat dotRadius

Declared In

TKPageControl.h

numberOfPages

The number of pages in the page control.

@property (nonatomic, assign) NSInteger numberOfPages

Declared In

TKPageControl.h

pageIndicatorTintColor

The color of the page indicators that aren’t active.

@property (nonatomic, retain) UIColor *pageIndicatorTintColor

Declared In

TKPageControl.h

spaceBetweenDots

The space in between page indicators.

@property (nonatomic, assign) CGFloat spaceBetweenDots

Declared In

TKPageControl.h

Instance Methods

setCurrentPage:animated:

This method allows you to set the background color during a certain state.

- (void)setCurrentPage:(NSInteger)currentPage animated:(BOOL)animated

Parameters

currentPage

The current page to be selected.

animated

Animate the selection of the current page.

Declared In

TKPageControl.h

setImage:forPage:

This method allows you to set page indicator as an image instead of a circle.

- (void)setImage:(UIImage *)image forPage:(NSInteger)page

Parameters

image

The image that should replace the circle.

page

The page that should be changed.

Declared In

TKPageControl.h