ChenYilong / ChenYilong/iOSInterviewQuestions

37 题 block 循环引用问题

Open
#50 5 comments 0 reactions 0 assignees View on GitHub
Q-A
Dominant language
Swift
Stars
9.5k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

ARC 下 __weak 可避免循环引用,__block 不行。 __block 仅在 MRC 下可解决循环引用的问题,但是会有野指针的问题。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with question 37 and its current answer, then review issue #50's distinction between __weak and __block under ARC and MRC. Done should be a clear, technically accurate explanation of the cycle-reference behavior and the dangling-pointer caveat; no file or test is identified in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
objective-c
Domain
content, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.