1.導入第三方MarqueeLabelblog
2.it
#pragma mark 懶加載io
-(MarqueeLabel *)typeLable{im
if (_typeLable == nil) {img
//建立co
_typeLable = [[MarqueeLabel alloc]initWithFrame:CGRectMake(MARGIN*3, MARGIN/4, kWidth-MARGIN*4, HEIGHTONE*KRATE) duration:7 andFadeLength:0.0];background
//文字滾動的類型
//首尾相連(從左到右)return
_typeLable.marqueeType = MLContinuous;//能夠點進去查看,還有其餘方式ps
// _typeLable.backgroundColor = [UIColor redColor];懶加載
// _typeLable.font = [UIFont systemFontOfSize:16];
_typeLable.textAlignment = NSTextAlignmentLeft;
_typeLable.textColor = [UIColor whiteColor];
_typeLable.adjustsFontSizeToFitWidth = YES;
}
return _typeLable;
}