Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/honcheng/SliderPageControl-for-iOS
An alternative for UIPageControl
https://github.com/honcheng/SliderPageControl-for-iOS
Last synced: about 1 month ago
JSON representation
An alternative for UIPageControl
- Host: GitHub
- URL: https://github.com/honcheng/SliderPageControl-for-iOS
- Owner: honcheng
- License: other
- Created: 2010-12-11T02:48:31.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-09-27T13:46:49.000Z (about 12 years ago)
- Last Synced: 2024-10-28T11:18:06.418Z (about 1 month ago)
- Language: Objective-C
- Homepage: http://honcheng.com
- Size: 441 KB
- Stars: 137
- Watchers: 11
- Forks: 28
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - SliderPageControl-for-iOS - An alternative for UIPageControl (etc)
- awesome - SliderPageControl-for-iOS - An alternative for UIPageControl (etc)
README
SliderPageControl for iOS
=========================This is an alternative for UIPageControl. See video [here](http://www.honcheng.com/2010/12/SliderPageControl---open-source-alternative-for-UIPageControl-in-iOS)
Required Files
--------------
1. SliderPageControl.h
2. SliderPageControl.m
3. SliderPageControl.bundle/images/sliderPageControl.png
4. SliderPageControl.bundle/images/sliderPageControlBg.pngUsage
-----1) To integrate SliderPageControl, drag the files above to your XCode Project, and add to your view.
#import SliderPageControl.h
2) set number of pages- (void)setNumberOfPages:(int)page
3) returns the current page
- (int)currentPage
4) set the current page. set animated=YES to animate the control- (void)setCurrentPage:(int)_currentPage animated:(BOOL)animated
5) set page title that is visible when the control is dragged- (NSString *)sliderPageController:(id)controller hintTitleForPage:(NSInteger)page
6) Skinning SliderPageControl
To skin SliderPageControl, use the provided PSD file to change the control image (sliderPageControl.png) and the background (sliderPageControlBg.png)You can find more information about SliderPageControl at the link below
Requirements
------------
* ARC
* XCode 4.4 (auto-synthesis)Contact
-------[@honcheng](http://twitter.com/honcheng)
[honcheng.com](http://honcheng.com)![](http://www.cocoacontrols.com/analytics/honcheng/sliderpagecontrol-for-ios.png)