style: image path

This commit is contained in:
杭城小刘
2020-05-04 02:52:47 +08:00
parent 8dbcff87ed
commit 966910d38d
4 changed files with 17 additions and 17 deletions

View File

@@ -78,7 +78,7 @@ pragma mark - getter and setter
```Objective-c
self.latestImageView.image = [UIImage iconWithInfo:LBPIconFontmake(@"\U0000e6ac", 60, @"000066") ];
```
![封装后的工程目录结构](./../assets/2017-05-28-iconfont.png)
![封装后的工程目录结构](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/assets//2017-05-28-iconfont.png)
1. LBPFontInfo来封装字体信息
2. UIColor+picker根据十六进制字符串来设置颜色

View File

@@ -2554,9 +2554,9 @@ void printResponseData (CFDataRef responseData) {
NSURLSession、NSURLConnection hook 如下。
![NSURLSession Hook](./../assets/2020-04-13-NSURLSessionHook.jpeg)
![NSURLSession Hook](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/assets//2020-04-13-NSURLSessionHook.jpeg)
![NSURLConnection Hook](./../assets/2020-04-13-NSURLConnectionHook.jpeg)
![NSURLConnection Hook](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/assets//2020-04-13-NSURLConnectionHook.jpeg)
@@ -2847,7 +2847,7 @@ CFNetwork 使用 CFReadStreamRef 来传递数据,使用回调函数的形式
};
```
![method swizzling](./../assets/2020-04-09-methodSwizzling.png)
![method swizzling](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/assets//2020-04-09-methodSwizzling.png)
method swizzling 改进版如下
@@ -2875,11 +2875,11 @@ CFNetwork 使用 CFReadStreamRef 来传递数据,使用回调函数的形式
```
![method swizzling](./../assets/2020-04-09-methodSwizzling.png)
![method swizzling](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/assets//2020-04-09-methodSwizzling.png)
![isa swizzling](./../assets/2020-04-13-isaSwizzling.png)
![isa swizzling](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/assets//2020-04-13-isaSwizzling.png)

View File

@@ -6,7 +6,7 @@
> An NSURLProtocol object handles the loading of protocol-specific URL data. The NSURLProtocol class itself is an abstract class that provides the infrastructure for processing URLs with a specific URL scheme. You create subclasses for any custom protocols or URL schemes that your app supports.
![URL Loading System](./../assets/2020-04-18-URL-loading-system.png)
![URL Loading System](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/assets//2020-04-18-URL-loading-system.png)
NSURLProtocol 是 Foundation 框架中 URL Loading System 的一部分。它可以让开发者可以在不修改应用内原始请求代码的情况下,去改变 URL 加载的全部细节。换句话说NSURLProtocol 是一个被 Apple 默许的中间人攻击。