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
lfflyers
V2EX  ›  iDev

有没有人碰到过这种情况?有大神知道原因吗?

  •  
  •   lfflyers · Oct 10, 2015 · 3715 views
    This topic created in 3875 days ago, the information mentioned may be changed or developed.
    在界面 1 中我用 present 的方式进入界面 2 ,返回时用[self dismissViewControllerAnimated:NO completion:nil]没有问题,但是用[self dismissViewControllerAnimated:YES completion:nil]就会直接崩溃,出现 EXC_BAD_ACCESS 。真是搞不懂,有大神知道原因吗?
    8 replies    2015-10-10 17:25:48 +08:00
    lfflyers
        1
    lfflyers  
    OP
       Oct 10, 2015
    先自顶一下!!!
    loveuqian
        2
    loveuqian  
       Oct 10, 2015
    肯定没问题啊。这都有问题不是要爆炸嘛

    试下找你其他代码的问题吧
    jianleer
        3
    jianleer  
       Oct 10, 2015
    僵尸指针
    Product->Scheme->Edit Scheme->Run ???.app
    右边的选项中,选中 Enable Zombie Objects

    问题修复后记得关闭
    jianleer
        4
    jianleer  
       Oct 10, 2015
    lfflyers
        5
    lfflyers  
    OP
       Oct 10, 2015
    @jianleer log 上提示这个:-[ZXCapture retain]: message sent to deallocated instance 0x127505a80
    这是什么意思?要怎么修复?
    jianleer
        6
    jianleer  
       Oct 10, 2015
    @lfflyers @lfflyers ZXCapture 找它咯,善用 Google
    lfflyers
        7
    lfflyers  
    OP
       Oct 10, 2015
    @jianleer 就是 ZXing 二维码扫描,返回时奔溃了
    jianleer
        8
    jianleer  
       Oct 10, 2015
    @lfflyers 用 Apple 原生的吧,而且 ZXing 2.1 和 OpenCV 2.4.3 的 iOS 库有一些兼容问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1005 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 22:19 · PVG 06:19 · LAX 15:19 · JFK 18:19
    ♥ Do have faith in what you're doing.