zjf
2023-03-06 392b76515f40376b6d36f40a114850ef63650384
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
//
//  PBPersonListView.h
//  IphoneBIMe
//
//  Created by zjf on 2020/12/4.
//  Copyright © 2020 ProBIM. All rights reserved.
//
 
#import <UIKit/UIKit.h>
 
NS_ASSUME_NONNULL_BEGIN
typedef void(^selectedHandler)(NSUInteger index,NSString *title);
 
@interface PBPersonListView : UIView
 
- (instancetype)initWithFrame:(CGRect)frame
                       titles:(NSArray *)titles
              selectedHandler:(selectedHandler)handler;
 
- (void)insertLabelWithTitle:(NSString *)title
                     atIndex:(NSUInteger)index
                    animated:(BOOL)animated;
 
- (void)insertLabelsWithTitles:(NSArray *)titles
                     atIndexes:(NSIndexSet *)indexes
                      animated:(BOOL)animated;
 
- (void)deleteLabelAtIndex:(NSUInteger)index
                  animated:(BOOL)animated;
 
- (void)deleteLabelsAtIndexes:(NSIndexSet *)indexes
                     animated:(BOOL)animated;
 
- (void)reloadAllWithTitles:(NSArray *)titles;
 
@end
 
NS_ASSUME_NONNULL_END