摘要: iOS中实现LED跑马灯效果 实现原理是使用scrollView, 将需要滚动的label添加两次到 scrollView的subView下面, 然后通过滚动scrollView来实现跑马灯效果。 具体实现代码如下: // // KMScrollLabel.swift // StopSmokingP 阅读全文
posted @ 2016-01-13 17:44 大雨不晴 阅读(2547) 评论(0) 推荐(0) 编辑
摘要: 修改UITextField的Placeholder字体颜色有一下两张方式可以达到效果。第一种:UIColor *color = [UIColor whiteColor];textfield.attributedPlaceholder = [[NSAttributedString alloc] ini... 阅读全文
posted @ 2016-01-13 16:44 大雨不晴 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 原文地址: http://www.cocoachina.com/ios/20160108/14916.html?utm_source=tuicool&utm_medium=referral 在 iOS 中使用 MVC 架构感觉很奇怪? 迁移到MVVM架构又怀有疑虑?听说过 VIPER 又不确定是否真 阅读全文
posted @ 2016-01-13 11:29 大雨不晴 阅读(288) 评论(0) 推荐(0) 编辑