Tagged articles
2 articles
Page 1 of 1
JD Retail Technology
JD Retail Technology
Jun 28, 2020 · Mobile Development

Understanding iOS Runtime: Dictionary-to-Object Conversion, Associated Objects, and Method Swizzling

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
Understanding iOS Runtime: Dictionary-to-Object Conversion, Associated Objects, and Method Swizzling
Meituan Technology Team
Meituan Technology Team
Mar 4, 2015 · Mobile Development

Deep Dive into Objective‑C Runtime: Understanding Categories and Their Loading Mechanism

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
Deep Dive into Objective‑C Runtime: Understanding Categories and Their Loading Mechanism