STRAutoScrollLabel *autoLabel = [[STRAutoScrollLabel alloc] initWithFrame:CGRectMake(10, 30, 200, 40)];
//设置文字
autoLabel.text = @"跑马灯效果!哈哈哈哈哈哈,实现了,看看效果好不好";
//设置颜色
autoLabel.textColor = [UIColor redColor];
[self.view addSubview:autoLabel];
//根据实际情况,设置速度及之间间距
// autoLabel.speed = 70;
// autoLabel.labelBetweenGap = 100;
![image](https://github.com/TheYouth/STRMarquee/raw/master/screenShots/%E8%B7%91%E9%A9%AC%E7%81%AF%E6%95%88%E6%9E%9C%E5%9B%BE.gif)
跑马灯,向左或向右滚动label