Latest 1.1
Homepage https://github.com/silence0201/RuntimeWrap
License MIT
Platforms ios 7.0, requires ARC
Authors

RuntimeWrap

Language
License
A Simple RuntimeWrap With Objective-C

使用说明

安装

手工导入

将项目目录下SIRuntime导入项目中

Pod安装
pod 'SIRuntimeWrap', '~> 1.0'

使用

  1. 导入头文件

    #import "SIRuntime.h"
  2. 创建RuntimeWrap

    SIRuntime *runtime = [SIRuntime runtimeWithClass:self.class] ;
    SIRuntime *runtime = [SIRuntime runtimeWithClass:self] ;
  3. 注册新Class,使用SIRuntimeClass

    /// SIRuntimeClass
    /// 创建一个指定名称的类,父类为空
    - (instancetype)initWithName:(NSString *)name;
    /// 指定父类创建类
    - (instancetype)initWithName:(NSString *)name superclass:(Class)superclass;
    
    /// SIRuntime
    /// 删除某类
    + (void)removeClass:(SIRuntimeClass *)clazz ;
    /// 添加某类
    + (void)addNewClass:(SIRuntimeClass *)clazz ;
  4. 更多方法,请查看SIRuntime注释

RuntimeWrap

RuntimeWrap is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SIRuntimeWrap",
    "version": "1.1",
    "summary": "Runtime Wrap",
    "description": "A Simple Wrap for runtime with Objective-C",
    "homepage": "https://github.com/silence0201/RuntimeWrap",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Silence": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/silence0201/RuntimeWrap.git",
        "tag": "1.1"
    },
    "source_files": [
        "SIRuntime",
        "SIRuntime/**/*.{h,m}"
    ],
    "exclude_files": "SIRuntime/Exclude",
    "public_header_files": "SIRuntime/**/*.h",
    "requires_arc": true
}

Pin It on Pinterest

Share This