Giter VIP home page Giter VIP logo

ttpatch's Introduction

TTPatch

热修复、热更新、JS代码动态下发、动态创建类

1. 使用文档

2. 基础用法

1. 功能列表

功能特性 备注限制
替换指定ObjectC方法实现 实例/静态方法均可替换实现
支持block ObjectC传入JS, JS传入ObjectC均已支持
支持添加属性 为已存在的class添加属性
支持基础数据类型 非id类型,如int,bool均已支持
支持下发纯JS页面 JS代码映射原生代码,动态发布
实现协议 2020年04月01日新增
支持真机无线预览 详细说明

2. 安装

CocoaPods pod 0.3.0

  1. 在 Podfile 中添加 pod 'TTPatch'
  2. 执行 pod installpod update
  3. 导入 "TTPatch.h"

演示项目:Example.xcodeproj

运行效果图

效果图.gif

在线下发补丁执行

在线下发补丁执行.gif

重启后加载已下发补丁

重启后加载已下发补丁.gif

您的喜欢就是我更新的动力

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.