NSUInteger)index;
@end
@interface MOTitleLineView : UIView
@property(nonatomic, strong) NSArray *titles; //标题数组..._titles = titlesArray;
[self createTitleButton];
}
- (void)createTitleButton {
// 移除scrollView上的...btn.frame = CGRectMake(scrollWidth, 0, width, kSelfHeight - 2);
scrollWidth += width; //所有标题自适应宽度和...titleView.backgroundColor = [UIColor redColor];
_titleView.titles = @[@"swift", @"Objective-C", @"iOS...", @"Android", @"Windows", @"macOS"];
_titleView.frame = CGRectMake(12, 100, self.view.frame.size.width