yunyuelin / yunyuelin.github.io Goto Github PK
View Code? Open in Web Editor NEW技术博客 hexo
技术博客 hexo
前言此篇参考自iOS开发 - Swift使用JavaScriptCore与JS交互作者 :天秤vs永恒1实践通过 JavaScriotCore 来实现 Swift 和 JS 的交互。 一、JavaScriptCore中的类1234JSContext:JSContext是JS的执行环境,通过evaluateScript()方法可以执行JS代码JSValue: JSValue封装了JS与ObjC中的
前言当用户按下home键的时候,iOS的App并不会马上被kill掉,还会继续存活若干时间。理想情况下,用户点击App的图标再次回来的时候,App几乎不需要做什么,就可以还原到退出前的状态,继续为用户服务。这种持续存活的情况下启动App,我们称为热启动,相对而言冷启动就是App被kill掉以后一切从头开始启动的过程。我们这里只讨论App冷启动的情况。 对于冷启动来说,启动时间是指从用户点击 APP
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修饰符可以改成函数表派发。直接派发是最快的,原因是调用指令会少,还可以通过编译器进行比如内联等方式的优化。缺
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是一个二维绘图引擎,同时支持iOS和Mac系统。其实 iOS 中很多控件都是通过 Quartz 2D 画出来的.同时Quartz 2D还可以做这些事情,12341、剪裁图形2、涂鸦/画板(如签名等)3、手势解锁(连线)4、折线图、饼状图、柱形图等绘制(虽然我都是直接用 charts) 使用 Quartz 2D绘图的核心步骤:1234561、获得上下文2、绘制/拼接绘图路径3、将路
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.