- 授权协议: 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__)
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》 这本书的介绍吧!
