原文整理页

Telegram 通过混淆字符串调用私有 API _UIPortalView,实现了表情选择器独特的边缘卷曲滚动效果

来源作者:Mike Rundle (@flyosity)原始来源:https://x.com/steipete/status/2083044200434872717

中文导读

Telegram 通过混淆字符串调用私有 API _UIPortalView,实现了表情选择器独特的边缘卷曲滚动效果。

正文 Markdown

Telegram’s emoji-picker edge tuck effect uses the private UIKit class _UIPortalView to create 8 live-updating views of the scrolling grid sliced into strips then progressively rotate them around the X axis to approximate a quarter-circle In the source they skirt Apple's private API static analysis checks through simple string obfuscation: portalViewClass = NSClassFromString([@[@"_", @"UI", @"Portal", @"View"] componentsJoinedByString:@""]); Telegram's UIKitUtils class is chock full of crazy things like this, and they probably aren't worried about Apple's ire because they're so big that booting them off the App Store would not be in Apple's best interest https://t.co/SF5kOzpVsx