Giter Site home page Giter Site logo

weadar / easykvo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from developererenliu/easykvo

0.0 2.0 0.0 13 KB

自己实现系统KVO,简单易用,不会像原生KVO那样“矫情”很容易导致Crash,而且提供了block方式的回调

Objective-C 100.00%

easykvo's Introduction

EasyKVO

系统的KVO存在很多问题,例如重复添加导致的多次回调,以及重复移除或忘记移除导致的崩溃。所以我基于Runtime写了套自定义的KVO,调用方式和原生的一样,并提供了block方式的回调,使代码更紧凑。

写的比较简单,可能会有一些其他bug。仅供技术交流,项目中尽量不要使用。如果要使用的话,推荐使用Facebook的KVOController

原文地址

KVO原理分析及使用进阶

easykvo's People

Contributors

developererenliu avatar

Watchers

 avatar  avatar

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.