Code Monkey home page Code Monkey logo

yunyuelin.github.io's People

Contributors

yunyuelin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

yunyuelin.github.io's Issues

Swift与JavaScript的交互(通过JavaScriptCore) | PierceDark

https://yunyuelin.github.io/2018/02/27/Swift%E4%B8%8EJavaScript%E7%9A%84%E4%BA%A4%E4%BA%92-%E9%80%9A%E8%BF%87JavaScriptCore/#more

前言此篇参考自iOS开发 - Swift使用JavaScriptCore与JS交互作者 :天秤vs永恒1实践通过 JavaScriotCore 来实现 Swift 和 JS 的交互。 一、JavaScriptCore中的类1234JSContext:JSContext是JS的执行环境,通过evaluateScript()方法可以执行JS代码JSValue: JSValue封装了JS与ObjC中的

优化APP启动时间实践 iOS | PierceDark

https://yunyuelin.github.io/2018/04/12/%E4%BC%98%E5%8C%96APP%E5%90%AF%E5%8A%A8%E6%97%B6%E9%97%B4%E5%AE%9E%E8%B7%B5-iOS/#more

前言当用户按下home键的时候,iOS的App并不会马上被kill掉,还会继续存活若干时间。理想情况下,用户点击App的图标再次回来的时候,App几乎不需要做什么,就可以还原到退出前的状态,继续为用户服务。这种持续存活的情况下启动App,我们称为热启动,相对而言冷启动就是App被kill掉以后一切从头开始启动的过程。我们这里只讨论App冷启动的情况。 对于冷启动来说,启动时间是指从用户点击 APP

Swift 派发机制 | PierceDark

https://yunyuelin.github.io/2018/05/22/Swift-%E6%B4%BE%E5%8F%91%E6%9C%BA%E5%88%B6/#more

此篇博客用来自我学习,来源戴铭大佬的这篇博客 Swift 派发机制派发目的是让 CPU 知道被调用的函数在哪里。Swift 语言是支持编译型语言的直接派发,函数表派发和消息机制派发三种派发方式的,下面分别对这三种派发方式说明下。 直接派发C++ 默认使用的是直接派发,加上 virtual修饰符可以改成函数表派发。直接派发是最快的,原因是调用指令会少,还可以通过编译器进行比如内联等方式的优化。缺

iOS Runtime的理解 | PierceDark

https://yunyuelin.github.io/2018/04/13/iOS-Runtime%E7%9A%84%E7%90%86%E8%A7%A3/#more

1字数5000+,预计阅读时间 30分钟 主要参考自: iOS运行时(Runtime)详解+Demo Objective-C Runtime 神经病院Objective-C Runtime出院第三天——如何正确使用Runtime 运行时简介Objective-C语言是一门动态语言,它将很多静态语言在编译和链接时期做的事放到了运行时来处理。对于Objective-C来说,这个运行时系统就像一个操

Quartz 2D 在 Swift 中的应用 | PierceDark

https://yunyuelin.github.io/2017/09/26/Quartz-2D-%E5%9C%A8-Swift-%E4%B8%AD%E7%9A%84%E5%BA%94%E7%94%A8/#more

Quartz 2D是一个二维绘图引擎,同时支持iOS和Mac系统。其实 iOS 中很多控件都是通过 Quartz 2D 画出来的.同时Quartz 2D还可以做这些事情,12341、剪裁图形2、涂鸦/画板(如签名等)3、手势解锁(连线)4、折线图、饼状图、柱形图等绘制(虽然我都是直接用 charts) 使用 Quartz 2D绘图的核心步骤:1234561、获得上下文2、绘制/拼接绘图路径3、将路

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.