2012年8月29日

UILabel 跑马灯 实现

摘要: 搜了不少例子,都不满意。最后找到一国外博客,他这个实现简单,用起来方便。简单的翻译一下,方便初学者使用:使用方法,如果用代码的话autoScrollLabel.text = @"Hi Mom! How are you? I really ought to write more often.";autoScrollLabel.textColor = [UIColor yellowColor];这样就OK。如果使用XIB,那么你要创建一个UIScrollView,然后更改它的Class类别为AutoScrollLabel。关于一些配置:scrollDirection: 文字滚动 阅读全文

posted @ 2012-08-29 14:43 cokecoffe 阅读(5761) 评论(0) 推荐(0) 编辑

导航