摘要: 方法1 /* 交换本质 class_getInstanceMethod(cls, selector)方法,这个方法有个特点:如果这个类(第一个参数)中没有实现selector这个方法,它返回的是它某父类的 Method 对象(沿着继承链找到为止) */ 交换实例 #import <objc/runt 阅读全文
posted @ 2021-03-18 10:08 走路蹩脚的火星人 阅读(115) 评论(0) 推荐(0) 编辑
摘要: // 图1 UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 300, 200, 74)]; imageView.backgroundColor = [[UIColor blackColor] co 阅读全文
posted @ 2021-02-22 14:46 走路蹩脚的火星人 阅读(77) 评论(0) 推荐(0) 编辑
摘要: https://developer.apple.com/appstore/contact/appreviewteam/index.html 阅读全文
posted @ 2020-01-18 18:03 走路蹩脚的火星人 阅读(86) 评论(0) 推荐(0) 编辑
摘要: Podfile 中导入pod 'YYText' 头文件的引入#import <YYText/YYText.h> 添加依赖 CortText QuartzCore 使用: 阅读全文
posted @ 2019-12-31 14:46 走路蹩脚的火星人 阅读(2363) 评论(0) 推荐(0) 编辑
摘要: xcode 下的缓存文件 ~/资源库/Developer/Xcode/DerivedData 用模拟器开发也会缓存很多文件 ~/Library/Developer/CoreSimulator/Devices/ 模拟器存储位置 /资源库/Developer/CoreSimulator/Profiles 阅读全文
posted @ 2019-12-30 11:22 走路蹩脚的火星人 阅读(326) 评论(0) 推荐(0) 编辑
摘要: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSuppor 阅读全文
posted @ 2019-12-23 17:37 走路蹩脚的火星人 阅读(641) 评论(0) 推荐(0) 编辑
摘要: ~/Library/Developer/Xcode/UserData/CodeSnippets 阅读全文
posted @ 2019-12-21 14:51 走路蹩脚的火星人 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 一般情况下我们都习惯用webview加载富文本。但是webview比较消耗内存。然后发现其实本身可以用uilabel加载,性能还不错就记录下~~ 核心方法下面两个 阅读全文
posted @ 2019-11-28 09:38 走路蹩脚的火星人 阅读(641) 评论(1) 推荐(1) 编辑
摘要: RACScheduler 信号调度器,是一个线性执行队列,rac中的信号可以在RACScheduler上执行任务、发送结果,底层用GCD封装的。 rac中提供生成线程的几个方法: 1:scheduler,这是一个异步线程,不会对主线程造成堵塞,异步执行 2:immediateScheduler ,立 阅读全文
posted @ 2019-11-16 16:22 走路蹩脚的火星人 阅读(1020) 评论(0) 推荐(0) 编辑
摘要: rac的数组遍历其实很简单。但是有个点需要注意。 以下先举个例子说明遍历的用法 以下是日志: <NSThread: 0x281cb4340>{number = 4, name = (null)} 2019-11-16 11:29:26.322717+0800 NewProjectToTest[428 阅读全文
posted @ 2019-11-16 11:34 走路蹩脚的火星人 阅读(876) 评论(0) 推荐(0) 编辑