线程1:生成EXC_BAD_ACCESS(Code = 1,address = 0x30000008)问题 [英] Thread 1 : EXC_BAD_ACCESS (Code = 1, address = 0x30000008) issue generated

查看:125
本文介绍了线程1:生成EXC_BAD_ACCESS(Code = 1,address = 0x30000008)问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在模拟器上运行应用时遇到问题。
中的问题:

I have an issue running an app on a simulator. The problem:

EXC_BAD_ACCESS

EXC_BAD_ACCESS occurring at objc_msgSend in Thread 1.

屏幕截图:

在我的应用程序中,我有多个 ViewController 。当我点击 UINavigationBar 的后退按钮时,会生成此类问题,我无法解释我的问题,因为所有功能都能正常工作。

In my Application, I have multiple ViewController. when I click on back button of UINavigationBar then this type of issue is generated, I can't explain my problem because all the functionality works properly.

示例: -

1 - fitstVController (正常工作)

1 - fitstVController (work properly)

=>它有UITableView,当我点击特定行然后它将继续另一个UIViewController(SecoundViewController)

=> it have UITableView, when I click on specific row then it will go on another UIViewController (SecoundViewController)

2 - SecoundViewController (正常工作)

2 - SecoundViewController (work properly)

=>它有UITableView和UIActionSheet。当我选择UiActionSheet的按钮,然后另一个的UIViewController(ThirdViewController)是开放

=> it have UITableView and UIActionSheet. when I select button of UiActionSheet then another UIViewController (ThirdViewController) is open

3 - ThirdViewController (正常工作)

3 - ThirdViewController (work properly)

=>它有UITableView和多个UIPickerView。但这里有问题,我不能回到以前的UIViewController(SecoundViewController)。
=>当我这样做,然后生成 EXC_BAD_ACCESS(代码= 1,地址= 0x30000008)问题。

=> it have UITableView and multiple UIPickerView. But HERE IS PROBLEM THAT I CAN'T GO BACK AT PREVIOUS UIViewController (SecoundViewController). => when i do that then EXC_BAD_ACCESS (Code = 1, address = 0x30000008) issue generated.

推荐答案

简而言之,当您释放分配给已释放的对象的内存时,就会出现此类问题。最有可能的是,当您返回到之前的 UIViewController (或其他情况)时,会生成此类问题。

In short, this type of problem occurs when you release the memory assigned to an object that has been already released. Most likely, this type of issue is generated when you go back to your previous UIViewController (or other cases).

此外,我建议阅读以下链接以获得更全面的解释:

And also, I suggest reading the following link for a more thorough explanation:

Hamster商场存档:所以你在objc_msgSend崩溃()

这篇关于线程1:生成EXC_BAD_ACCESS(Code = 1,address = 0x30000008)问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆