Coder Social home page Coder Social logo

fanxiaofan / ramutil Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ramboqiu/ramutil

0.0 1.0 0.0 8.16 MB

结合各类工具代码

License: MIT License

Ruby 0.07% Objective-C 8.30% CSS 0.01% HTML 0.01% JavaScript 0.11% C 5.29% C++ 53.29% Rich Text Format 0.52% Batchfile 0.05% Assembly 5.51% Objective-C++ 26.79% DTrace 0.01% Swift 0.07%

ramutil's Introduction

RAMUtil

结合各类工具代码,已经使用pod进行管理,导入单一的工具使用

pod 'RAMUtil', :git => 'https://github.com/RamboQiu/RAMUtil.git', :subspecs => ['RAMCellData'], :tag => '1.0.0'

1. 静态cell代码管理 - RAMCellData

2. 检查父类的强制复写方法是否被子类复写 - RAMMustOverrider

3. 安全容器 - RAMSafeCollection

举例主要使用

NSArray *arr = @[@"1"];
[arr at:0];

4. __attribute__ section - RAMExport

点击查看

5. log日志中间件 - RAMLog

可以在自己的模块或是sdk中接入,然后调用主程序的日志输出,例如,自己的skd里面么有接入DDLog,但是项目中都是封装了使用ddlog来写入日志的,这个时候可以在项目中调用如下,进行sdk中的日志中转即可

[RAMAdditionalLogger setBlock:^(int level, const char *fullpath, int line, const char *prefix, NSString *content) {
	[DDLog yx_channelLog:level fullpath:fullpath line:line prefix:prefix content:content];
}];

在sdk里面只需要使用

RAMLOG_INFO("I'm a test message.");

6. Runtime编译调用

使用的runtime版本为objc4-750.1

下载地址 github

没找到方法直接调用demo里面的runtime的源码工程,只能把想测试的runtime代码,copy到objc项目中去单独跑,然后看源码实现

image-20191128173217662

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.