Comments (5)
移出相关KVO监听代码, Crash不再出现
from sdmagichook.
iOS 14应该需要适配下,我们看下。
- 第148行是进行前置观察订阅操作,为后面的custom-kvo实现做准备,因为之前考虑观察者和被观察者几乎同一时刻销毁掉了,所以没有移除观察,在其他系统版本上测试没有问题,iOS 14上可能需要特殊处理下
2.第249行是hook了addObserver:forKeyPath:options:context:之后当addObserver:forKeyPath:options:context:被调用的时候来调用原始实现的操作
from sdmagichook.
layer比较特殊可能需要适配,先将demo中的layer换成view不影响demo演示,我们会尽快给出相关解决方案
from sdmagichook.
已修复,可以拉取最新代码测试下 @mengshun
from sdmagichook.
看到并验证了, Issue已修复, 作者很效率, 赞👍
from sdmagichook.
Related Issues (14)
- 您这个和Aspects的instance hook有什么不同吗😂 HOT 7
- 使用这个库,影响上架吗 HOT 1
- 用于打点, 如何Hook所有继承某个类的实例函数,而不是仅仅某一个实例的函数 HOT 1
- iOS 14.5崩溃 HOT 3
- release环境 最新iOS15多的系统 卡主了
- SDOrderedDict 这个类的命名有点不合适
- 这个库功能跟aspects基本一样,只有api上有细微差点……建议写相关功能先调研一下相关的库,避免重复造轮子 HOT 1
- SDMagicHook与Aspects的异同 HOT 3
- demo0 KVO crash HOT 3
- 代码应该在哪里编写 HOT 2
- 这个是不是只能对已知的实例(或者说自己生成的实例)进行hook HOT 3
- swift 调用 请检查你是否在hook了 `pointInside:withEvent:` 方法之后忘记调用原始方法。 HOT 1
- hook方法后,不调用以前hook的方法崩溃 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdmagichook.