- 使用 UIScrollView 作为底部承载视图
- 根据传入的数组 dataArray 计算其 contentSize ,并添加对应的 UILabel
DNVerticalTextScrollView * scrollView = [[DNVerticalTextScrollView alloc] initWithDataArray:@[@"我是谁",@"我在哪",@"我在干什么"]];
scrollView.frame = CGRectMake(0, 100, [UIScreen mainScreen].bounds.size.width, 50);
[self.view addSubview:scrollView];
scrollView.delegate = self;
- (void)dn_textScrollViewSelectedAtIndex:(NSInteger)index content:(NSString *)content {
NSLog(@"%ld---------%@",index,content);
}