上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: iOS layout的相关方法: 1,layoutSubviews 2,layoutIfNeeded 3,setNeedsLayout 4,setNeedsDisplay 5,drawRect 6,sizeThatFits 7,sizeToFit 大概有以上几个。 一,layoutSubviews 阅读全文
posted @ 2016-08-09 16:04 imKirin 阅读(261) 评论(0) 推荐(0) 编辑
摘要: iOS 中的 UIView 动画编程其实还是很简单的,像 CSS3 一样,在给定的时间内完成状态连续性的变化呈现。比如背景色,Frame 大小,位移、翻转,特明度等。 以前我使用的编程方式都是用下面那样的三段式处理: 1 2 3 4 5 6 7 8 [UIView beginAnimations:n 阅读全文
posted @ 2016-07-26 09:56 imKirin 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 输出函数: 无需引入函数库,无须使用“;”作为语句结尾,也无须写跟其它语言一样的main()函数,Swift中,全局区的代码就是程序入口。You don’t need to import a separate library for functionality like input/output o 阅读全文
posted @ 2016-06-30 11:51 imKirin 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 在IOS开发的项目中有一个Prefix.pch,.pch文件是什么? 在IOS开发的项目中有一个Prefix.pch,.pch文件是什么? Prefix.pch:扩展名.pch表示"precompiled header",这是一个你工程要用到的来自于外部框架的头文件列表。xcode将编译这些头到文件 阅读全文
posted @ 2016-06-20 10:35 imKirin 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 以label为例: 阅读全文
posted @ 2016-06-15 16:43 imKirin 阅读(787) 评论(0) 推荐(0) 编辑
摘要: <!--?xml version="1.0" encoding="UTF-8" standalone="no"?--> 通常我们在 iOS 中发生什么事件时该做什么是由 Delegate 实现的,例如 View 加载完后会触发 viewDidLoad。 Apple 还为我们提供了另一种通知响应方式, 阅读全文
posted @ 2016-05-06 11:30 imKirin 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 字符串操作: 对应输出结果: 阅读全文
posted @ 2016-05-06 11:16 imKirin 阅读(2156) 评论(0) 推荐(0) 编辑
摘要: <!--?xml version="1.0" encoding="UTF-8" standalone="no"?--> 1,for循环读取 <!--?xml version="1.0" encoding="UTF-8" standalone="no"?--> 2, NSEnumerator类来循环 阅读全文
posted @ 2016-04-25 18:36 imKirin 阅读(1621) 评论(0) 推荐(0) 编辑
摘要: <!--?xml version="1.0" encoding="UTF-8" standalone="no"?--> pod install 和 pod update的区别 pod install(下载并安装pod) 1,当pod file文件中有“增加pod,删除pod,修改pod”的操作之后使 阅读全文
posted @ 2016-04-15 11:29 imKirin 阅读(3953) 评论(0) 推荐(0) 编辑
摘要: <!--?xml version="1.0" encoding="UTF-8" standalone="no"?--> App Transport Security App Transport Security (ATS) enforces best practices in the secure 阅读全文
posted @ 2016-03-21 17:21 imKirin 阅读(1009) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页