iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
dismory
V2EX  ›  iDev

使用 ARC 的前提下,开启 NSZombieEnabled 会导致 ARC 在 dealloc 中自动置空 ivars 的特性失效

  •  
  •   dismory ·
    dismory · May 18, 2012 · 4227 views
    This topic created in 5261 days ago, the information mentioned may be changed or developed.
    因为 dealloc 方法依旧可以被调用,所以使用前 ARC 时代的手动置空 ivars 的方式依旧可行。故这里应该算是 ARC 的一个 bug。

    以下为 Stackoverflow 里一个类似问题,提问者已经在 Open Radar 上起了 issue。

    http://stackoverflow.com/questions/8408071/why-is-object-not-dealloced-when-using-arc-nszombieenabled

    但是不知道有什么临时解决方案?

    否则 ARC 下无法同时调试僵尸和内存泄漏了…
    1 replies  •  1970-01-01 08:00:00 +08:00
    BB9z
        1
    BB9z  
       May 19, 2012
    NSDeallocateZombies?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2061 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 00:01 · PVG 08:01 · LAX 17:01 · JFK 20:01
    ♥ Do have faith in what you're doing.