gltwy / LTScrollView

ScrollView嵌套ScrolloView(UITableView 、UICollectionView)解决方案, 支持OC / Swift(持续更新中...)实现原理:http://blog.csdn.net/glt_code/article/details/78576628
MIT License
1.05k stars 204 forks source link

LTScrollExtension.swift中如下代码是什么意思 #93

Closed bw-bianwei closed 3 years ago

bw-bianwei commented 4 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=="这一串是怎么得到的

championfu commented 4 years ago

base54解码就是"_notifyDidScroll",UIKit里的私有方法,怕被拒就做了一下简单的加密

gltwy commented 4 years ago

@Bianwei520 @championfu 正解,如有任何问题,随时提问