Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 2.第二题.md #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 内存管理/2.第二题.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
- 不能使用 `retain`、`release`、`retainCount`、`autorelease`。
- 不可以使用 `NSAllocateObject`、`NSDeallocateObject`。
- 必须遵守内存管理方法的命名规则。
- 不需要显示的调用 `Dealloc`。
- 不需要显式的调用 `Dealloc`。
- 使用 `@autoreleasePool` 来代替 `NSAutoreleasePool`。
- 不可以使用区域 `NSZone`。
- 对象性变量不可以作为 `C` 语言的结构体成员。
- 对象型变量不可以作为 `C` 语言的结构体成员。
- 显示转换 `id` 和 `void*`。