JGMethodSwizzler icon indicating copy to clipboard operation
JGMethodSwizzler copied to clipboard

Cannot swizzle methods that have an inout parameter

Open khanmdv opened this issue 10 years ago • 0 comments

I am unable to swizzle scrollViewWillEndDragging:withVelocity:targetContentOffset: of the UIScrollviewDelegate as the last parameter targetContentOffset is an inout parameter and blocks do not take inout parameter. Because of this the signature comparison fails and swizzling never happens.

khanmdv avatar Oct 01 '14 21:10 khanmdv