关于 iOS-Interview/Objective-C面试题.md
Alexanders2020 opened this issue · 1 comments
Alexanders2020 commented
一个 NSObject 对象占用多少内存?
查看答案
系统分配18个字节,但是真正占用只有8个字节。
这个地方笔误了吧...
应该是16 个字节
8个字节isa用了
8个字节是空的
josercc commented
感谢指正
Alexanders2020 opened this issue · 1 comments
一个 NSObject 对象占用多少内存?
查看答案
系统分配18个字节,但是真正占用只有8个字节。
这个地方笔误了吧...
应该是16 个字节
8个字节isa用了
8个字节是空的
感谢指正