Closed bw-bianwei closed 3 years ago
public class func initializeOnce() { DispatchQueue.once(token: UIDevice.current.identifierForVendor?.uuidString ?? "LTScrollView") { let didScroll = "X25vdGlmeURpZFNjcm9sbA==".glt_base64Decoding() let originSelector = Selector((didScroll)) let swizzleSelector = #selector(glt_scrollViewDidScroll) glt_swizzleMethod(self, originSelector, swizzleSelector) } }
这段代码中“ let didScroll = "X25vdGlmeURpZFNjcm9sbA==".glt_base64Decoding()”是什么意思, "X25vdGlmeURpZFNjcm9sbA=="这一串是怎么得到的
base54解码就是"_notifyDidScroll",UIKit里的私有方法,怕被拒就做了一下简单的加密
@Bianwei520 @championfu 正解,如有任何问题,随时提问
这段代码中“ let didScroll = "X25vdGlmeURpZFNjcm9sbA==".glt_base64Decoding()”是什么意思, "X25vdGlmeURpZFNjcm9sbA=="这一串是怎么得到的