- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有这段代码,有时变量 dConfiguration 是 Nil,我得到一个 EXC_BAD_ACCESS 错误,大多数时候变量说 0 键/值对,错误几乎不可能重现,我只需点击我的按钮大部分时间都能正常工作,但在极少数情况下会失败。
serviceData = data;
dispatch_async(dispatch_get_main_queue(), ^{
[loading removeFromSuperview];
_tvTable.hidden = NO;
dConfiguration =[NSJSONSerialization JSONObjectWithData:serviceData options:kNilOptions error:nil];
if (![[dConfiguration objectForKey:@"NumberOfLines"] isEqual: [NSNull null]]) {
_NumberOfLines = [[dConfiguration objectForKey:@"NumberOfLines"] integerValue];
} else {
_NumberOfLines = 1;
}
if(badget!=nil){
dBadgets = [NSJSONSerialization JSONObjectWithData:badget options:kNilOptions error:nil];
}
dValue = [dConfiguration objectForKey:sButtonType];
RowCount = (int)dValue.count;
[_tvTable numberOfRowsInSection:RowCount];
[self loadTable];
});
此变量在实现中声明为全局变量:
@implementation vcTableViewEventsManagerEvents {
NSDictionary *dConfiguration;
}
我从未实现过 alloc 初始化代码:
dConfiguration = [[NSDictionary alloc] init];
这可能是问题所在吗?如果我总是初始化变量,这个错误不会发生吗?始终进行初始化是一种好习惯吗?我在哪里可以看到 EXC_BAD_ACCESS 的更详细信息?
感谢大家的帮助。
更新 1
我已经尝试查看所有评论中的错误,也许我做错了什么,因为错误变量为 nil 这是屏幕截图:
在这个特定的时间里,变量 dConfiguration 表示 0 个键/值对,因为我添加了 alloc init。
我已经尝试过双击并尽可能快地从标签栏项目中更改,有时可以工作,有时却不能。
更新 2
正如您所问,这是错误的 BT:
thread #1: tid = 0x7bfdfd, 0x2537dd52 Foundation
newJSONString + 98,
newJSONString + 98 frame #1: 0x2537d300 Foundation
queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1,
address=0x3fe64a2)
frame #0: 0x2537dd52 FoundationnewJSONValue + 1976
newJSONValue + 956 frame #3: 0x2537d380 Foundation
frame #2: 0x2537cf04 FoundationnewJSONValue + 2104
-[_NSJSONReader parseUTF8JSONData:skipBytes:options:] + 176 frame #5: 0x2537c88e Foundation
frame #4: 0x2537ca80 Foundation-[_NSJSONReader parseData:options:] + 238
+[NSJSONSerialization JSONObjectWithData:options:error:] + 156 frame #7: 0x00121b24 guestperience
frame #6: 0x2537c718 Foundation__43-[vcTableViewEventsManagerEvents
_dispatch_call_block_and_release + 10 frame #9: 0x00495b6a libdispatch.dylib
checkJson]_block_invoke_2(.block_descriptor=0x17040f40) + 244 at
vcTableViewEventsManagerEvents.m:298
frame #8: 0x00495b7e libdispatch.dylib_dispatch_client_callout + 22
_dispatch_main_queue_callback_4CF + 1680 frame #11: 0x24b81bdc CoreFoundation
frame #10: 0x0049a654 libdispatch.dylib__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
__CFRunLoopRun + 1574 frame #13: 0x24acf2e8 CoreFoundation
frame #12: 0x24b800d6 CoreFoundationCFRunLoopRunSpecific + 520
CFRunLoopRunInMode + 108 frame #15: 0x260bfac8 GraphicsServices
frame #14: 0x24acf0d4 CoreFoundationGSEventRunModal + 160
UIApplicationMain + 144 frame #17: 0x001cb6f0 guestperience
frame #16: 0x291940b8 UIKitmain(argc=1, argv=0x00473b5c) + 106 at main.m:16
start + 2
frame #18: 0x24777872 libdyld.dylib
更新 3
我已在控制台中执行此命令以查看 JSON,在我看来是正确的:
(lldb) po (NSString *)[[NSString alloc] initWithData:serviceData encoding:4]
{
"BackgroundImage": null,
"ButtonGallery": null,
"Buttons": null,
"ButtonsEvents": [{
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "04 JUN 2016 - Horario: 11.00 - 18.00",
"Id": 23,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_15f37703-f0a0-4f10-be70-76e0118fa9f9_x320.jpg",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_15f37703-f0a0-4f10-be70-76e0118fa9f9_x320.jpg",
"ImageRetinaHeighlighted": null,
"Item": "134",
"ItemType": null,
"JsonConfigFile": "134es",
"Label": "Brazil Pool Party",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Brazil Pool Party",
"ViewController": 21
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "23 JUN 2016 - Horario: 20:00 - 01:00",
"Id": 29,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_5af125bb-1bdf-4fcf-9306-3b565cdbb928_x320.jpg",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_5af125bb-1bdf-4fcf-9306-3b565cdbb928_x320.jpg",
"ImageRetinaHeighlighted": null,
"Item": "140",
"ItemType": null,
"JsonConfigFile": "140es",
"Label": "Noche de San Juan",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Noche de San Juan",
"ViewController": 21
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "02 JUL 2016 - Horario: 21:00 - 1:00",
"Id": 30,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_7227de52-8d27-4a65-bdf7-dea08e37b968_x320.jpg",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_7227de52-8d27-4a65-bdf7-dea08e37b968_x320.jpg",
"ImageRetinaHeighlighted": null,
"Item": "141",
"ItemType": null,
"JsonConfigFile": "141es",
"Label": "Noche Amàre",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Noche Amàre",
"ViewController": 21
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "09 JUL 2016 - Horario: 22:00 - 00:00",
"Id": 28,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_4ad05ca3-c345-4a6f-aeb9-972610056b86_x320.jpg",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_4ad05ca3-c345-4a6f-aeb9-972610056b86_x320.jpg",
"ImageRetinaHeighlighted": null,
"Item": "139",
"ItemType": null,
"JsonConfigFile": "139es",
"Label": "Noche Flamenca Beach",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Noche Flamenca Beach",
"ViewController": 21
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "20 JUL 2016 - Horario: 19:00 - 22:00",
"Id": 27,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_161bab39-5ac6-43a0-84c4-5c0fa764b5b0_x320.jpg",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_161bab39-5ac6-43a0-84c4-5c0fa764b5b0_x320.jpg",
"ImageRetinaHeighlighted": null,
"Item": "138",
"ItemType": null,
"JsonConfigFile": "138es",
"Label": "Noche de luna llena",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Noche de luna llena",
"ViewController": 21
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "23 JUL 2016 - Horario: 21:00 - 00:00",
"Id": 26,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_c657d56d-5f24-4f28-8d0c-66afb2fae1ad_x320.jpg",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_c657d56d-5f24-4f28-8d0c-66afb2fae1ad_x320.jpg",
"ImageRetinaHeighlighted": null,
"Item": "137",
"ItemType": null,
"JsonConfigFile": "137es",
"Label": "Noche cubana",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Noche cubana",
"ViewController": 21
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "06 AGO 2016 - Horario: 22:00 - 00:00",
"Id": 31,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_98032ab6-b689-42d6-b19b-6b82705478a3_x320.jpg",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_98032ab6-b689-42d6-b19b-6b82705478a3_x320.jpg",
"ImageRetinaHeighlighted": null,
"Item": "142",
"ItemType": null,
"JsonConfigFile": "142es",
"Label": "Noche Flamenca Beach",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Noche Flamenca Beach",
"ViewController": 21
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "13 AGO 2016 - Horario: 21:00 - 00:00",
"Id": 32,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_447f28d9-ed38-4482-868e-74743cbb5a89_x320.jpg",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_447f28d9-ed38-4482-868e-74743cbb5a89_x320.jpg",
"ImageRetinaHeighlighted": null,
"Item": "143",
"ItemType": null,
"JsonConfigFile": "143es",
"Label": "Noche cubana",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Noche cubana",
"ViewController": 21
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "10 SEP 2016 - Horario: 11:00 - 18:00",
"Id": 33,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_a7328a94-d64d-4fd4-b0a1-a2c126c8c92c_x320.jpg",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_a7328a94-d64d-4fd4-b0a1-a2c126c8c92c_x320.jpg",
"ImageRetinaHeighlighted": null,
"Item": "144",
"ItemType": null,
"JsonConfigFile": "144es",
"Label": "Pool Party",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Pool Party",
"ViewController": 21
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "17 SEP 2016 - Horario: 12:00 - 18:00",
"Id": 25,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_9f8af8e5-56d7-433f-9661-9403196faad8_x320.jpg",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_9f8af8e5-56d7-433f-9661-9403196faad8_x320.jpg",
"ImageRetinaHeighlighted": null,
"Item": "136",
"ItemType": null,
"JsonConfigFile": "136es",
"Label": "Oktoberfest",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Oktoberfest",
"ViewController": 21
}],
"ButtonsPromotions": [{
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "",
"Id": 18,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_ba95942c-1ece-4332-9f95-eb3f95738f41_x320.png",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_ba95942c-1ece-4332-9f95-eb3f95738f41_x320.png",
"ImageRetinaHeighlighted": null,
"Item": "126",
"ItemType": null,
"JsonConfigFile": "126es",
"Label": "Desayuna con Nosotros",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Desayuna con Nosotros",
"ViewController": 20
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "",
"Id": 19,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_3b9f1e44-5f33-4eb9-987b-5e50dcaed2a7_x320.png",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_3b9f1e44-5f33-4eb9-987b-5e50dcaed2a7_x320.png",
"ImageRetinaHeighlighted": null,
"Item": "127",
"ItemType": null,
"JsonConfigFile": "127es",
"Label": "Disfruta de Nuestra Cena Buffet",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Disfruta de Nuestra Cena Buffet",
"ViewController": 20
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "",
"Id": 20,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_f0ec90c9-3383-48f7-b5cf-28a236aee9e9_x320.png",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_f0ec90c9-3383-48f7-b5cf-28a236aee9e9_x320.png",
"ImageRetinaHeighlighted": null,
"Item": "128",
"ItemType": null,
"JsonConfigFile": "128es",
"Label": "Alquiler de Bicicletas Vintage",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Alquiler de Bicicletas Vintage",
"ViewController": 20
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "",
"Id": 21,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_f72a03bf-ddd2-486e-a289-cb3e82bd08db_x320.png",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_f72a03bf-ddd2-486e-a289-cb3e82bd08db_x320.png",
"ImageRetinaHeighlighted": null,
"Item": "129",
"ItemType": null,
"JsonConfigFile": "129es",
"Label": "Parking",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Parking",
"ViewController": 20
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "",
"Id": 22,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_3dd87e35-2ae3-4ef2-a70a-f1b44e41d27a_x320.png",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_3dd87e35-2ae3-4ef2-a70a-f1b44e41d27a_x320.png",
"ImageRetinaHeighlighted": null,
"Item": "130",
"ItemType": null,
"JsonConfigFile": "130es",
"Label": "Ofertas de Grab & Go",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Ofertas de Grab & Go",
"ViewController": 20
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "",
"Id": 13,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_b8187a48-1b03-4b29-a403-f03af8433c4f_x320.png",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_b8187a48-1b03-4b29-a403-f03af8433c4f_x320.png",
"ImageRetinaHeighlighted": null,
"Item": "92",
"ItemType": null,
"JsonConfigFile": "92es",
"Label": "Habitación \"The One\"",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Habitación \"The One\"",
"ViewController": 20
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "",
"Id": 14,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_fc20ec9b-2107-4828-9796-d5234dbe80fd_x320.png",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_fc20ec9b-2107-4828-9796-d5234dbe80fd_x320.png",
"ImageRetinaHeighlighted": null,
"Item": "98",
"ItemType": null,
"JsonConfigFile": "98es",
"Label": "Disfruta de una Salida de Habitación más Tarde",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Disfruta de una Salida de Habitación más Tarde",
"ViewController": 20
}, {
"BadgeCount": 0,
"ClientId": 0,
"Frequency": "",
"Id": 15,
"Image": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_be514668-27d0-4ee8-995e-0f8f89936c9b_x320.png",
"ImageHeighlighted": null,
"ImageIconTitle": "",
"ImageRetina": "http:\/\/ServerCloud.CloudApp.net\/DesktopServerCloud\/ClientData\/4\/Images\/GVT_be514668-27d0-4ee8-995e-0f8f89936c9b_x320.png",
"ImageRetinaHeighlighted": null,
"Item": "103",
"ItemType": null,
"JsonConfigFile": "103es",
"Label": "Habitación categoría superior",
"LongTitle": null,
"Selector": "btnAction:",
"SubLabel": null,
"Title": "Habitación categoría superior",
"ViewController": 20
}],
"ButtonsTabList": null,
"DatePeriod": null,
"Details": null,
"Disclaimer": null,
"MessageList": null,
"NoBooking": null,
"NumberOfLines": 2,
"Pins": null,
"Selector": null,
"ServiceType": null,
"TabList": null,
"Texts": null,
"Titles": null,
"Url": null,
"UserCode": null
}
最佳答案
当你修改一个 block 内的变量时,你必须使用__block
说明符
__block NSDictionary *dConfiguration;
__block NSData *serviceData = data;
dispatch_async(dispatch_get_main_queue(), ^{
//...
});
关于ios - dispatch_get_main_queue() 上的 EXC_BAD_ACCESS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37271283/
我遇到了一些应用程序崩溃的问题,我需要一些指导才能修复它。我有一个带有主视图和模态视图的应用程序,非常类似于默认的翻转实用模板。当我第一次运行该应用程序时,一切都运行良好,包括模态视图。但是,当我返回
UPDATE: I updated the correction of my definition of Realm, I still get the error. I'm using Swi
我正在尝试用带有c的sqlite3创建一个CGI可执行文件。但我收到错误exc_badd_access,我不知道问题出在哪里。我的代码是:。main.c。sqlite.h。Sqlite.c。Confi
我正在尝试用带有c的sqlite3创建一个CGI可执行文件。但我收到错误exc_badd_access,我不知道问题出在哪里。我的代码是:。Main.c。sqlite.h。Sqlite.c。Confi
我正在尝试暂停 AVAudioPlayer如果当前正在播放。当我调试我的代码并检查时 AVAudioPlayer ,我看是分配的。当我尝试访问它的方法/属性(即 myAudioPlayer isPla
我正在使用 xcode 用 C 语言编写这个简单的程序。 #include int main() { double A[200][200][2][1][2][2]; int B[2
这是我得到的错误 Thread 1:EXC_BAD_ACCESS (code=2, address=0xb7ffffc) 在这条线上 [[NSNotificationCenter defaultCen
我的 iPhone 应用程序出现问题,出现 EXC_BAD_ACCESS,出现一些内存泄漏,但这些问题现已修复,所以我不确定发生了什么。我意识到我没有提供很多信息,但我真的不知道发生了什么。 打开初始
//adds a button to scroll list -(void) addNode:(NSString *) atitle{ UIButton *btn = [UIButton
我几乎完成了我的第一个应用程序,但我遇到了一个奇怪的 EXC_BAD_ACCESS,这种情况几乎一直在发生。 这是跟踪: #0 0x02adba93 in objc_msgSend #1 0x0702
我一直在研究核心数据,并开始编写一些方法来查询不同日期范围的数据。我的核心数据模型非常简单(名为 Smoke 的实体,具有一个字段 - 时间戳(日期类型)。 当我执行代码时,会返回正确的计数,但出现自
我有以下代码: ABAddressBookRef ab; ab = ABAddressBookCreate(); int len = (int) ABAddressBookGetPersonCount
希望有人可以帮助我调试这个问题,因为 EXC_BAD_ACCESS 是我收到的唯一错误。我也尝试过打开 NSZombieEnabled,但据我所知,没有获得更多信息。 问题。我有四个实体: A ->
我正在 tableView 上加载自定义单元格,并在 tableView 中返回 50 行。一些行数显示在表格 View 中,但是当滚动表格 View 时,我的自定义单元格不显示,并且出现错误 "EX
我正在尝试使用 NSLog 来打印控制台消息。问题是有时我在调用它时收到“EXC_BAD_ACCESS”错误 -(void)willRotateToInterfaceOrientation:(UIIn
这是我使用音频队列生成噪音的代码: http://pastebin.com/Kn8GU72J 问题是我的代码生成了 EXC_BAD_ACCESS。问题似乎出在作业中 MAAudioManage
我正在开发适用于 iOS 的 OpenGL ES 2 应用程序。今天早上(没有更改任何代码)我开始从 sgxTextureGetImageRowBytes 抛出 EXC_BAD_ACCESS。 #0
我在这里完全迷路了。 我的应用程序中有Google Analytics(分析),可查看有多少用户从UITableView进入detailview 我在viewDidLoad方法中添加了Google A
我是 Cocoa 新手,正在编写一个简单的应用程序来学习使用 Core Data,但它因 EXC_BAD_ACCESS 而崩溃。尝试了几种方法,但尚未找到解决方案。正如我所说,我对 Cocoa 的经验
以下代码使应用程序崩溃,我不知道为什么。它不规则地崩溃,这意味着有时单击一行时 ImageView 可以显示 30 次,有时当我选择一行时它会第二次崩溃。 仅供引用:事件指示器、操作表和变量 imag
我是一名优秀的程序员,十分优秀!