SliderPageControl for iOS
This is an alternative for UIPageControl. See video here
Required Files
- SliderPageControl.h
- SliderPageControl.m
- SliderPageControl.bundle/images/sliderPageControl.png
- SliderPageControl.bundle/images/sliderPageControlBg.png
Usage
-
To integrate SliderPageControl, drag the files above to your XCode Project, and add to your view.
#import SliderPageControl.h
-
set number of pages
- (void)setNumberOfPages:(int)page
-
returns the current page
- (int)currentPage
-
set the current page. set animated=YES to animate the control
- (void)setCurrentPage:(int)_currentPage animated:(BOOL)animated
-
set page title that is visible when the control is dragged
- (NSString *)sliderPageController:(id)controller hintTitleForPage:(NSInteger)page
-
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)