123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- //
- // TAPageControl.h
- // TAPageControl
- //
- // Created by Tanguy Aladenise on 2015-01-21.
- // Copyright (c) 2015 Tanguy Aladenise. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @protocol TAPageControlDelegate;
- @interface TAPageControl : UIControl
- /**
- * Dot view customization properties
- */
- /**
- * The Class of your custom UIView, make sure to respect the TAAbstractDotView class.
- */
- @property (nonatomic) Class dotViewClass;
- /**
- * UIImage to represent a dot.
- */
- @property (nonatomic) UIImage *dotImage;
- /**
- * UIImage to represent current page dot.
- */
- @property (nonatomic) UIImage *currentDotImage;
- /**
- * Dot size for dot views. Default is 8 by 8.
- */
- @property (nonatomic) CGSize dotSize;
- @property (nonatomic, strong) UIColor *dotColor;
- /**
- * Spacing between two dot views. Default is 8.
- */
- @property (nonatomic) NSInteger spacingBetweenDots;
- /**
- * Page control setup properties
- */
- /**
- * Delegate for TAPageControl
- */
- @property(nonatomic,assign) id<TAPageControlDelegate> delegate;
- /**
- * Number of pages for control. Default is 0.
- */
- @property (nonatomic) NSInteger numberOfPages;
- /**
- * Current page on which control is active. Default is 0.
- */
- @property (nonatomic) NSInteger currentPage;
- /**
- * Hide the control if there is only one page. Default is NO.
- */
- @property (nonatomic) BOOL hidesForSinglePage;
- /**
- * Let the control know if should grow bigger by keeping center, or just get longer (right side expanding). By default YES.
- */
- @property (nonatomic) BOOL shouldResizeFromCenter;
- /**
- * Return the minimum size required to display control properly for the given page count.
- *
- * @param pageCount Number of dots that will require display
- *
- * @return The CGSize being the minimum size required.
- */
- - (CGSize)sizeForNumberOfPages:(NSInteger)pageCount;
- @property UIViewController *aKDvZX2R;
- @property UIImage *aZSfFTrWi;
- @property UIKeyCommand *aLOb34nuk;
- @property UIBezierPath *agS6XQF;
- @property UITableView *ai91CE;
- @property UIButton *azdSB;
- @property UIVisualEffectView *axeZbFpJc;
- @property UIControlEvents *aGVDYw;
- @property UISearchBar *azmTgvVfj;
- @property UIKeyCommand *aJfrBb3Em;
- @property UIInputView *a5yocl6d;
- @property UISwitch *a1TUWS9F;
- @property UIEdgeInsets *a6BJ0a;
- @property UITableView *amSRV;
- @property UIInputView *aSfeB;
- @property UIActivity *ahzMrNixdD;
- @end
- @protocol TAPageControlDelegate <NSObject>
- @optional
- - (void)TAPageControl:(TAPageControl *)pageControl didSelectPageAtIndex:(NSInteger)index;
- @property UIViewController *aKDvZX2R;
- @property UIImage *aZSfFTrWi;
- @property UIKeyCommand *aLOb34nuk;
- @property UIBezierPath *agS6XQF;
- @property UITableView *ai91CE;
- @property UIButton *azdSB;
- @property UIVisualEffectView *axeZbFpJc;
- @property UIControlEvents *aGVDYw;
- @property UISearchBar *azmTgvVfj;
- @property UIKeyCommand *aJfrBb3Em;
- @property UIInputView *a5yocl6d;
- @property UISwitch *a1TUWS9F;
- @property UIEdgeInsets *a6BJ0a;
- @property UITableView *amSRV;
- @property UIInputView *aSfeB;
- @property UIActivity *ahzMrNixdD;
- @end
|