Skip to content

ObornJung/swizzleMethod

Repository files navigation

swizzleMethod

swizzle method include instance method and class method

Version License Platform

Example

//
// swizzle two class method
[[self class] sm_swizzleClassMethod:classSel1 withMethod:classSel2];
//
// swizzle two instance method
[[self class] sm_swizzleMethod:instanceSel1 withMethod:instanceSel2];

Requirements

Installation

swizzleMethod is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'swizzleMethod'

Author

Oborn Jung, obornjung@gmail.com

License

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