为什么我的申请在更改视图时会冻结?

时间:2011-05-25 21:14:15

标签: iphone xcode

我在每个视图的末尾都有相同的代码转到下一个:

- (IBAction)proceed2 {
    StepThree *one = [[[StepThree alloc] initWithNibName:@"StepThree" bundle:nil]      autorelease];
    one.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    [self presentModalViewController:one animated:YES];
}

除了这个之外,这在每个视图中都有效,除了不同的步骤编号(并不总是StepThree)之外,我的所有代码看起来完全相同。我和所有人一样导入了“StepThree.h”......为什么这个问题给我带来了问题?

顺便说一句,它在行

[self presentModalViewController:one animated:YES];

,错误是“线程1:程序接收信号:”SIGABRT“。”

1 个答案:

答案 0 :(得分:1)

您发布的代码似乎是正确的。

问题的产生可能是由于StepThree实施中的某些原因。

诊断此类不良行为的一种好方法是启用“僵尸”检测。有关详细信息,请参阅here

相关问题