V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
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 · 2015-10-10 15:49:34 +08:00 · 2864 次点击
    这是一个创建于 3093 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在界面 1 中我用 present 的方式进入界面 2 ,返回时用[self dismissViewControllerAnimated:NO completion:nil]没有问题,但是用[self dismissViewControllerAnimated:YES completion:nil]就会直接崩溃,出现 EXC_BAD_ACCESS 。真是搞不懂,有大神知道原因吗?
    8 条回复    2015-10-10 17:25:48 +08:00
    lfflyers
        1
    lfflyers  
    OP
       2015-10-10 15:54:51 +08:00
    先自顶一下!!!
    loveuqian
        2
    loveuqian  
       2015-10-10 16:04:00 +08:00
    肯定没问题啊。这都有问题不是要爆炸嘛

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

    问题修复后记得关闭
    jianleer
        4
    jianleer  
       2015-10-10 16:06:58 +08:00
    lfflyers
        5
    lfflyers  
    OP
       2015-10-10 16:20:19 +08:00
    @jianleer log 上提示这个:-[ZXCapture retain]: message sent to deallocated instance 0x127505a80
    这是什么意思?要怎么修复?
    jianleer
        6
    jianleer  
       2015-10-10 16:51:12 +08:00
    @lfflyers @lfflyers ZXCapture 找它咯,善用 Google
    lfflyers
        7
    lfflyers  
    OP
       2015-10-10 17:21:26 +08:00
    @jianleer 就是 ZXing 二维码扫描,返回时奔溃了
    jianleer
        8
    jianleer  
       2015-10-10 17:25:48 +08:00
    @lfflyers 用 Apple 原生的吧,而且 ZXing 2.1 和 OpenCV 2.4.3 的 iOS 库有一些兼容问题
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3855 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 10:18 · PVG 18:18 · LAX 03:18 · JFK 06:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.