Tagged articles
Method Swizzling
12 articles · Page 1 of 1
Mobile developers often struggle with unreproducible crashes and lag reported by users, spending days sifting through logs and isolated stack traces; this article explains how a cloud‑native iOS SDK links performance metrics, error logs, and user behavior through systematic data collection to dramatically speed up issue diagnosis.
Method SwizzlingPerformance Monitoringdata collection
0 likes · 9 min read

The article explains the architecture, data collection methods, and crash monitoring techniques of Alibaba Cloud's RUM SDK for iOS, detailing session tracing, performance metrics, Method Swizzling, system event handling, and KSCrash integration to improve issue diagnosis.
Crash ReportingMethod SwizzlingPerformance Monitoring
0 likes · 9 min read

This article explains the fundamentals of event tracking in iOS apps, compares server‑side and client‑side tracking, details three implementation strategies (code‑based, non‑intrusive, and visual), introduces a data classification scheme, and provides Swift code examples—including enums, protocols, a chain‑based data‑passing mechanism, and runtime method‑hooking techniques—while also discussing practical challenges and best‑practice recommendations.
Method SwizzlingSWIFTdata-passing
0 likes · 22 min read

This article explains how to use AOP techniques such as Method Swizzle and NSProxy to hook UICollectionView and UIViewController delegate methods for precise event tracking, analyzes compatibility problems caused by multiple delegate proxies in large apps, and proposes three practical solutions to avoid crashes and maintain extensibility.
Delegate ProxyHookingMethod Swizzling
0 likes · 15 min read

This article explores using AOP techniques such as Method Swizzle and NSProxy‑based delegate proxies to instrument iOS view controllers and collection view delegates, analyzes crashes caused by multiple setDelegate hooks—including interactions with RxCocoa—and proposes several practical solutions to ensure stable hooking in complex app environments.
AOPDelegate ProxyHooking
0 likes · 17 min read

This article examines Objective‑C method swizzling, compares two common implementation schemes, analyzes 18 inheritance‑hook scenarios for child‑first and parent‑first hook orders, and provides practical recommendations to ensure correct execution order and avoid crashes.
Method SwizzlingObjective-C++hook
0 likes · 14 min read

This article explains the fundamentals of Aspect‑Oriented Programming on iOS, compares major AOP techniques such as Method Swizzle, Aspects, MPSwizzler, ISA‑swizzle KVO, Fishhook, Thunk and Clang instrumentation, and provides practical code examples and best‑practice guidelines.
AOPMethod SwizzlingObjective-C++
0 likes · 21 min read

This article explains how iOS developers can use the Objective‑C runtime to automatically convert dictionaries to model objects, add properties to existing classes via associated objects, and implement method swizzling for tasks such as analytics injection, illustrating each technique with code flow and diagrams.
Associated ObjectsDictionary to ModelMethod Swizzling
0 likes · 7 min read

This article introduces the Sunglasses crash investigation tool, explains iOS Objective‑C runtime message handling—including method lookup, dynamic resolution, and forwarding—details method swizzling implementation with code examples, and discusses class clusters and future enhancements for mobile development debugging.
Crash HandlingMethod SwizzlingObjective-C++
0 likes · 14 min read

This article explores Apple's libMainThreadChecker.dylib implementation, details its environment variables and swizzling logic, demonstrates how to replicate its functionality by enumerating UIKit classes and hooking methods, and discusses pitfalls of full‑method hooking and a bridge‑based solution for reliable runtime monitoring.
Main Thread CheckerMethod SwizzlingObjective-C++
0 likes · 15 min read

The article explains the challenges of mobile network environments in China, introduces connection migration issues, and presents iOS network monitoring solutions using NSURLProtocol, code injection (Hook) with Method Swizzling, NSProxy, and Fishhook, as well as detailed usage of NSURLSessionTaskMetrics for performance analysis.
FishhookMethod SwizzlingNSURLProtocol
0 likes · 18 min read

The article explains Objective‑C categories by detailing their definition, compile‑time vs runtime differences, internal struct representation, how the compiler emits metadata, the loading and +load ordering process, method overriding mechanics, and the use of associated objects for adding state.
Associated ObjectsCategoryMethod Swizzling
0 likes · 18 min read
