

Nextrek
@ 67
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
// // CustomPageControl.h // CustomPageControl #import <Foundation/Foundation.h> #import <UIKit/UIControl.h> #import <UIKit/UIKitDefines.h> typedef enum { CustomPageControlTypeOnFullOffFull = 0, CustomPageControlTypeOnFullOffEmpty = 1, CustomPageControlTypeOnEmptyOffFull = 2, CustomPageControlTypeOnEmptyOffEmpty = 3, CustomPageControlTypeOnImageOffImage = 4, } CustomPageControlType ; @interface CustomPageControl : UIControl { NSInteger numberOfPages ; NSInteger currentPage ; } // Replicate UIPageControl features @property(nonatomic) NSInteger numberOfPages ; @property(nonatomic) NSInteger currentPage ; @property(nonatomic) BOOL hidesForSinglePage ; @property(nonatomic) BOOL defersCurrentPageDisplay ; - (void)updateCurrentPageDisplay ; - (CGSize)sizeForNumberOfPages:(NSInteger)pageCount ; /* CustomPageControl add-ons - all these parameters are optional Not using any of these parameters produce a page control identical to Apple's UIPage control */ - (id)initWithType:(CustomPageControlType)theType ; @property (nonatomic) CustomPageControlType type ; @property (nonatomic,retain) UIColor *onColor ; @property (nonatomic,retain) UIColor *offColor ; @property (nonatomic,retain) UIImage *onImage ; @property (nonatomic,retain) UIImage *offImage ; @property (nonatomic) CGFloat indicatorDiameter ; @property (nonatomic) CGFloat indicatorSpace ; @end |
Commits for Nextrek/iOS/Emmanuele Rossi/Trivagolando/Trivagolando/CustomPageControl.h
Revision | Author | Commited | Message |
---|---|---|---|
67 |
![]() |
Thu 23 Jan, 2014 14:31:55 +0000 | Emmanuele Rossi apps |