SWRoute

码农软件 · 软件分类 · 其他开发相关 · 2019-10-22 09:57:32
  • 授权协议: WTFPL
  • 开发语言: Swift
  • 操作系统: iOS

软件介绍

SWRoute 是一个极小的 rd_route() Swift 封装器,允许用户 route(hook)任意的函数或者方法与另一个函数/方法,,甚至是闭包。

示例:

class DemoClass {
    func demoMethod(arg: Int) -> Int {
        return (42 + arg);
    }}var err = SwiftRoute.replace(function: DemoClass().demoMethod, with: {
    (arg : Int) -> Int in
        return (90 + arg)})XCTAssert(err == Int(KERN_SUCCESS), "", file: __FILE__, line: __LINE__)XCTAssert(DemoClass().demoMethod(arg) == (90 + arg), "", file: __FILE__, line: __LINE__)


本文地址:https://www.codercto.com/soft/d/17300.html

The Four

The Four

Scott Galloway / Portfolio / 2017-10-3 / USD 28.00

NEW YORK TIMES BESTSELLER USA TODAY BESTSELLER Amazon, Apple, Facebook, and Google are the four most influential companies on the planet. Just about everyone thinks they know how they got there.......一起来看看 《The Four》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具