GLD_SegmentViewProtocol.h
1.17 KB
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
//
// GLD_SegmentViewProtocol.h
// YX_BaseProject
//
// Created by yiyangkeji on 2018/4/13.
// Copyright © 2018年 com.yxvzb. All rights reserved.
//
#import <UIKit/UIKit.h>
@class GLD_SegmentView;
@protocol GLD_SegmentViewDelegate <NSObject>
@optional
- (void)SegmentView:(GLD_SegmentView *)segmentView didScrollToItemAtIndex:(NSInteger)Index;
@end
@protocol GLD_SegmentViewDataSource <NSObject>
- (NSInteger)numbersOfItemInSegmentView:(GLD_SegmentView *)segmentView;
- (UIView *)segmentView:(GLD_SegmentView *)segmentView itemViewAtIndex:(NSInteger)index;
- (NSString *)segmentView:(GLD_SegmentView *)segmentView titleForItemAtIndex:(NSInteger)index;
- (NSDictionary *)segmentView:(GLD_SegmentView *)segmentView attributesForTitleAtIndex:(NSInteger)index isSelected:(BOOL)selected;
@optional
- (CGFloat)heightOfheaderForSegmentView:(GLD_SegmentView *)segmentView;
@end
@protocol GLD_SegmentViewProtocol <NSObject>
@property (nonatomic, strong,readonly)UIView *selecteItemView;
@property (nonatomic, assign)NSInteger selecteIndex;
- (void)setDelegate:(id<GLD_SegmentViewDelegate>)delegate;
- (void)setDataSourceDelegate:(id<GLD_SegmentViewDataSource>)dataSourceDelegate;
@end