相关疑难解决方法(0)

如何诊断EXC_CRASH?

测试人员发送了此崩溃文件:不确定EXC_CRASH是什么.

更新:旋转手机时,我可以在设备上随机复制(永远不会在模拟器中).这是我的轮换代码:

// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {

    if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft ||interfaceOrientation == UIInterfaceOrientationLandscapeRight) {

        imageScrollView.frame = CGRectMake(0,0,480,300); //self.view.bounds;
        imageView.frame = CGRectMake(0,0,480,300); //self.view.bounds;
    }
    else {
        imageScrollView.frame = CGRectMake(0,0,320,460); 
        imageView.frame = CGRectMake(0,0,320,460); 
    }


    //return (interfaceOrientation == UIInterfaceOrientationPortrait);
    if (enableLandscapeOrientation) {
        [[self navigationController] setNavigationBarHidden:UIInterfaceOrientationIsLandscape(interfaceOrientation) animated:YES];
        return YES;
    }
    else {
        return NO;
    }
}
Run Code Online (Sandbox Code Playgroud)

符号化崩溃日志:

Incident Identifier: EC78AFBF-B73D-4490-B7E3-D6A7CDA5D449
CrashReporter Key:   1657e021ecba3a19c5ed9f0cff62947a426a2bc2
Hardware Model:      iPhone3,1
Process:         StockTwits [1565]
Path:            /var/mobile/Applications/915A215F-EA55-4B98-901B-67E4C856B59E/StockTwits.app/StockTwits
Identifier:      StockTwits
Version: …
Run Code Online (Sandbox Code Playgroud)

memory iphone cocoa-touch objective-c

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

cocoa-touch ×1

iphone ×1

memory ×1

objective-c ×1