数据库操作
1.FMDB http://www.jianshu.com/p/82b2b06e3172
2.CoreData : MagicRecord (无脑使用)
http://childhood.logdown.com/posts/208957/easy-magicalrecord-01
3.Kechain: 暂时空白
error: 注意所有的操作一定要在一个context内操作,否则只是在temp,任何增删改查都不会生效
AutoLayout
- SDAutoLayout(偶尔看到以后会去看下,但是是天朝人的东西)https://github.com/gsdios/SDAutoLayout
- PureLayout
- 使用 Auto Layout 的典型痛点和技巧: http://www.jianshu.com/p/0f031606e5f2
error:如果想通过事件去改变某个View的constraints 在初始化constraint的时候不能写死
var blurViewHeightConstraint: NSLayoutConstraint?
func test2() -> Void{
self.view.addSubview(blueView)
blurViewHeightConstraint = blueView.autoSetDimension(.Height, toSize: 50)
blueView.autoSetDimension(.Width, toSize: 100)
blueView.autoCenterInSuperview()
}
UIView.animateWithDuration(1) {
// test 2
self.blurViewHeightConstraint?.constant = 200
self.view.layoutIfNeeded() //动画必须,否则无动画
WebView 与 Js 交互
WKWebView的使用和各种坑的解决方法:http://www.jianshu.com/p/403853b63537
JavaScriptCore和Objective-C: http://www.jianshu.com/p/ca5456fb3983
录音和网络流媒体
- iOS学习笔记25-录音和网络流媒(可以播放网络音乐)体:http://www.jianshu.com/p/4bcb3d3a1b14
- .EZAudio: https://github.com/syedhali/EZAudio
- 边录边转码,播放网络音频Button(本地缓存),实时语音。 https://github.com/molon/MLAudioRecorder
上传
- AFNetWorking的简单封装 图片音频 视频下载 上传 请求数据:http://www.jianshu.com/p/2919c0ddda49
Webp
1.webP 格式图片在 iOS 中的应用http://www.jianshu.com/p/ed7562a34af1
2.已经实现好的 https://github.com/durant/webview-webP-ios
3.display/encode/decode animated WebP, APNG, GIF, and more.:https://github.com/ibireme/YYImage
工具
- 桥接搭建实时编辑视图:http://www.jianshu.com/p/54ec13256ae7
extension UIView {
@IBInspectable var cornerRadius: CGFloat {
get {
return self.layer.cornerRadius
}
set {
self.layer.cornerRadius = newValue
}
}
@IBInspectable var masksToBounds: Bool {
get {
return self.layer.masksToBounds
}
set {
self.layer.masksToBounds = newValue
}
}
@IBInspectable var borderColor: UIColor? {
get {
if let borderColor = self.layer.borderColor {
return UIColor(CGColor: borderColor)
}
else {
return nil
}
}
set {
if let borderColor = newValue {
self.layer.borderColor = borderColor.CGColor
}
}
}
@IBInspectable var borderWidth: CGFloat {
get {
return self.layer.borderWidth
}
set {
self.layer.borderWidth = newValue
}
}
}
动画
- iOS Swift animations :https://github.com/MengTo/Spring
VR
RunLoop与Runtime(7.11)
- 深入了解RunLoop:http://blog.ibireme.com/2015/05/18/runloop/