• Stars
    star
    527
  • Rank 81,215 (Top 2 %)
  • Language
    Objective-C
  • License
    Other
  • Created about 13 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Customizable PageControl for iOS

Customizable PageControl for iOS

StyledPageControl is a customizable replacement for UIPageControl for iOS.

Features

  • 5 Styles
  • change colors
  • change diameter
  • change gap width
  • change stroke width
  • show current page number
  • use custom images

Usage

  1. Drag StyledPageControl.h and StyledPageControl.m into your project.

    #import StyledPageControl.h

  2. Create StyledPageControl just like a UIPageControl

    StyledPageControl *pageControl = [[StyledPageControl alloc] init]; [self addSubview:pageControl];

  3. Set page control style

    [pageControl setPageControlStyle:PageControlStyleDefault];

  4. Set number of pages

    [pageControl setNumberOfPages:10];

  5. Set current page

    [pageControl setCurrentPage:5];

  6. Change page control colors

    [pageControl setCoreNormalColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:1]]; [pageControl setCoreSelectedColor:[UIColor colorWithRed:0.8 green:0.2 blue:0.2 alpha:1]];

  7. Change distance between dots

    [pageControl setGapWidth:5];

  8. Change dot's diameter

    [pageControl setDiameter:9];

  9. Use custom thumbnails

    [pageControl setPageControlStyle:PageControlStyleThumb]; [pageControl setThumbImage:[UIImage imageNamed:@"pagecontrol-thumb-normal.png"]]; [pageControl setSelectedThumbImage:[UIImage imageNamed:@"pagecontrol-thumb-selected.png"]];

Minimum Requirements

  • ARC - this project uses ARC. If you are not using ARC in your project, add '-fobjc-arc' as a compiler flag for StyledPageControl.h and StyledPageControl.m
  • XCode 4.4 and newer (auto-synthesis required)

Contact

twitter.com/honcheng
honcheng.com

More Repositories

1

PaperFold-for-iOS

Paper folding animation for iOS
Objective-C
2,704
star
2

RTLabel

simple rich text display for iOS using html-like markups
Objective-C
1,459
star
3

iOSPlot

Chart library for iOS
Objective-C
1,372
star
4

PaperFoldMenuController

A navigation menu on the left of the screen using on PaperFold
Objective-C
436
star
5

PaperFoldGallery

PaperFoldGallery for iOS
Objective-C
360
star
6

CATransform3D-Test

A test app to visualize view transformation when value in CATransform3D matrices change
Objective-C
352
star
7

PanelTableView

Multiple UITableViews in a UIScrollView
Objective-C
202
star
8

StyledTableViewCell-for-iOS

Customize table view cell border and highlights
Objective-C
195
star
9

SliderPageControl-for-iOS

An alternative for UIPageControl
Objective-C
137
star
10

AcornCharts-for-iOS

Fun way to display charts using balls that responds to device tilting
Objective-C
113
star
11

ScrollableTabHost-for-Android

Java
90
star
12

iOS-nodechat

iOS chat client for socket.io & node.js backend
Objective-C
70
star
13

GAE-APIMonitor

Google AppEngine application that monitors server API
Python
25
star
14

GAEMobileAnalytics

Google AppEngine Analytics for Mobile Applications
Objective-C
17
star
15

CAMediaTimingFunctionVisualizer

iPad app to preview animation based on custom animation curve created
Objective-C
17
star
16

Singapore-Bus-Services

Singapore Bus Services
6
star
17

rfremote-fan-api

API to control RF fan using pilight in Raspberry Pi
Python
5
star
18

SubRip-Parser-for-iOS

Objective-C
5
star
19

homebridge-rfremote-fan

HomeBridge plugin to replace RF remote control for fans
JavaScript
3
star
20

socketio-cocoa

Cocoa interface to Socket.IO by way of WebSockets.
Objective-C
1
star