源码简介
通过button实现
源码截图
源码片段
- - (id)initWithFrame:(CGRect)frame
- {
- self = [super initWithFrame:frame];
- if (self)
- {
- arrays = [[NSMutableArray alloc] init];
- isRise = YES;
- titleLab = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 40, 20)];
- titleLab.backgroundColor = [UIColor clearColor];
- titleLab.font = [UIFont systemFontOfSize:14];
- [self addSubview:titleLab];
- for (int i = 0; i