财神随手记账

TXBYCardSwitchView.h 920B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // TXBYCardSwitchView.h
  3. // TXBYCardSwitchView
  4. //
  5. // Created by YandL on 16/2/2.
  6. // Copyright © 2016年 YandL All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #define TXBYUIColorWithHex(hexValue) [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16))/255.0 \
  10. green:((float)((hexValue & 0xFF00) >> 8))/255.0 \
  11. blue:((float)(hexValue & 0xFF))/255.0 alpha:1]
  12. @class TXBYCardSwitchView;
  13. @protocol TXBYCardSwitchViewDelegate <NSObject>
  14. - (void)cardSwitchViewDidScroll:(TXBYCardSwitchView *)cardSwitchView index:(NSInteger)index;
  15. @end
  16. @interface TXBYCardSwitchView : UIView <UIScrollViewDelegate>
  17. @property (nonatomic,assign) id<TXBYCardSwitchViewDelegate> delegate;
  18. @property (nonatomic,strong) UIScrollView *cardSwitchScrollView;
  19. @property (nonatomic,assign) float currentIndex;
  20. - (void)setIndex:(NSInteger)index;
  21. - (void)setCardSwitchViewAry:(NSArray *)cardSwitchViewAry delegate:(id)delegate;
  22. @end