2016.4-2016.7总结

本文汇总了iOS开发中常用的技术和工具,包括数据库操作、AutoLayout使用技巧、WKWebView与JavaScript交互、音频处理、图片格式应用及各类开发工具的介绍。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

数据库操作

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

  1. SDAutoLayout(偶尔看到以后会去看下,但是是天朝人的东西)https://github.com/gsdios/SDAutoLayout
  2. PureLayout
  3. 使用 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

录音和网络流媒体

  1. iOS学习笔记25-录音和网络流媒(可以播放网络音乐)体:http://www.jianshu.com/p/4bcb3d3a1b14
  2. .EZAudio: https://github.com/syedhali/EZAudio
  3. 边录边转码,播放网络音频Button(本地缓存),实时语音。 https://github.com/molon/MLAudioRecorder

上传

  1. 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

工具

  1. 桥接搭建实时编辑视图: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
        }
    }
}

动画

  1. iOS Swift animations :https://github.com/MengTo/Spring

VR

1.https://github.com/Aralekk

RunLoop与Runtime(7.11)

  1. 深入了解RunLoop:http://blog.ibireme.com/2015/05/18/runloop/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值