Tag

Blocks

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Nov 4, 2021 · Mobile Development

Understanding Objective‑C Blocks: Syntax, Usage, and Underlying Implementation

This article explains what Objective‑C blocks are, why they are useful, how to declare and use them in various contexts, and dives into the compiler‑generated data structures, copy/dispose mechanisms, __block semantics, memory‑management pitfalls, and reference‑cycle avoidance.

BlocksClosureCompiler
0 likes · 13 min read
Understanding Objective‑C Blocks: Syntax, Usage, and Underlying Implementation
JD Retail Technology
JD Retail Technology
Oct 12, 2017 · Mobile Development

Understanding Objective‑C Blocks: Implementation, Memory Management, and Cycle Avoidance

This article explains the origin and concept of Objective‑C Blocks, details their internal structures and memory‑management mechanisms across MRR and ARC environments, demonstrates how to use and copy Blocks, and provides guidance on avoiding retain cycles through __block and __weak modifiers.

ARCBlocksMemory Management
0 likes · 25 min read
Understanding Objective‑C Blocks: Implementation, Memory Management, and Cycle Avoidance
Weidian Tech Team
Weidian Tech Team
Apr 20, 2016 · Mobile Development

Master Objective‑C Blocks: Types, __block, ARC/MRC Differences & Lifecycle

This article explains what Objective‑C blocks are, how they function as objects, the three block types, the role of the __block keyword, differences between ARC and MRC, and best practices for managing block lifecycles to avoid memory leaks.

ARCBlocksMRC
0 likes · 9 min read
Master Objective‑C Blocks: Types, __block, ARC/MRC Differences & Lifecycle