我想打電話給我現有的視圖中新視圖內一個新的ViewEXEC_BAD_ACCESS而突然跳出現有的View
TransactionFinish *childView= [[TransactionFinish alloc] initWithNibName:@"TransactionFinish" bundle:nil];
childView.view.frame = self.view.frame;
childView.view.frame=CGRectMake(10, 10, self.view.frame.size.width-20, self.view.frame.size.height-20);
childView.view.alpha = 0.0f;
[self.view addSubview:childView.view];
[UIView animateWithDuration:0.5 delay:0.0 options:UIViewAnimationCurveEaseOut
animations:^{
childView.view.alpha = 1.0f;
}
completion:^(BOOL finished) {
}];
它往裏走的TransactionFinish
ViewDidLoad()
(我曾經嘗試調試它),但它給了我線程EXEC_BAD_ACCESS(code=1,address=0x31f54e62)
綠色
您是否嘗試通過異常處理進行調試? 您可能會收到代碼崩潰的確切行 。 – vshall
你使用ARC嗎? – sergio
@sergio我沒有使用ARC – onkar