随笔分类 -  swift

摘要:http://www.jianshu.com/p/5d4789db4310,参看了这个文章,觉得还不错哦 阅读全文
posted @ 2016-07-24 22:19 在bug中前行 阅读(261) 评论(0) 推荐(0)
摘要:需要扩展一个String类的方法 阅读全文
posted @ 2016-07-24 21:38 在bug中前行 阅读(459) 评论(0) 推荐(0)
摘要:func initView() -> Void { let button = UIButton(frame: CGRectMake(100,200,150,150)) button.setImage(UIImage(named: "11"), forState: .Normal) button.setTitle("按钮", forStat... 阅读全文
posted @ 2016-07-18 17:30 在bug中前行 阅读(538) 评论(0) 推荐(0)
摘要:var str = "哈哈哈哈哈1234" func isIncludeChineseIn(string: String) -> Bool { for (_, value) in string.characters.enumerate() { if ("\u{4E00}" <= value && value <= "\u{9FA5}") { ... 阅读全文
posted @ 2016-07-17 14:14 在bug中前行 阅读(2837) 评论(0) 推荐(0)