# runtime_demo **Repository Path**: rang/runtime_demo ## Basic Information - **Project Name**: runtime_demo - **Description**: runtime开发中的实际应用 - **Primary Language**: Objective-C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-30 - **Last Updated**: 2021-10-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # runtime_demo #### 介绍 runtime开发中的实际应用 #### 安装教程 在需要使用runtime中,引用类 #import #### 使用说明 1.关联属性 UIButton+block.h中的setButtonTypeName,buttonTypeName方法
2.关联方法: UIButton+block.h中的handleWithBlock方法
3.交换方法: 系统自带的方法功能不够,给系统自带的方法扩展一些功能,并且保持原有的功能。
案例查看:UIImage+Image.h文件
4.获取属性列表 案例:MMModel类getAllIvar方法
5.获取方法列表 案例:MMModel类getAllMethod方法
6.对私有属性修改 无
7.归档:解档(通过runtime快速的归档与解档) 案例:MMModel类encodeWithCoder与initWithCoder类