나는 그래서 내 TableViewController의 didSelectRowAtIndexPath 방법 내에서 내 탐색 컨트롤러의 스택에보기 컨트롤러를 밀어 해요 :왜이 과도한 출시입니까? UINavigationController가/jQuery과
MyViewController *myViewController = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil];
MyAppDelegate *appDelegate = (MyAppDelegate *)[[UIApplication sharedApplication] delegate];
MyObject *myO = (MyObject *)[appDelegate.myOs objectAtIndex:indexPath.row];
myViewController.amount = myO.amount;
[self.navigationController pushViewController:myViewController animated:YES];
[myViewController release];
내가 오류가 돌아 오면 마지막 줄이 다음 응용 프로그램 충돌의 주석을 해제하는 경우 :
-[CALayer release]: message sent to deallocated instance 0xd4f860
더 자세히 살펴보면 MyViewController의 dealoc 메소드 내에서 [super dealoc]에 대한 호출로 충돌을 더 좁힐 수 있음을 알 수 있습니다. "[super dealoc]"주석 처리를 해제하면 충돌이 발생하지 않습니다.
이 문제를 더욱 좁혀 가고 있습니다. "super"는 UIViewController 클래스가 될 것이고 나는 그 dealoc 메소드를 더 이상 조사 할 수 없다 ... 나는 할 수 있을까? 어쩌면 정확히 0xd4f860이 가리키고있는 것을 볼 수있는 방법이 있지만 어떻게 알지 못하겠습니까? 어떤 아이디어?
어디서든지 myViewController.view를 출시 하시겠습니까? –