我是 iPhone SDK 的新手,我在导航控制器上遇到了漏洞。这是我的代码:
-(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];
请帮助我...谢谢...