私はiPhoneSDKを初めて使用し、ナビゲーションコントローラーでリークが発生しました。これが私のコードです:
-(void)SignupClicked:(id)sender {
if(appdelegate.isiPad){
SignUpViewController *obj_SignUpViewController =[[SignUpViewController alloc] initWithNibName:@"SignUpViewControllerIpad" bundle:nil];
[self.navigationController pushViewController:obj_SignUpViewController animated:YES];
[obj_SignUpViewController release];
}
else {
SignUpViewController *obj_SignUpViewController =[[SignUpViewController alloc] initWithNibName:@"SignUpViewController" bundle:nil];
[self.navigationController pushViewController:obj_SignUpViewController animated:YES];
[obj_SignUpViewController release];
}
}
これらの回線でリークが発生しています。
[self.navigationController pushViewController:obj_SignUpViewController animated:YES];
[self.navigationController pushViewController:obj_SignUpViewController animated:YES];
助けてください...ありがとう...