我想要做的按钮CLCK以下的事情:“EXC_BAD_ACCESS”我该如何解决这个问题?
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
if (buttonIndex == 0)
{
if (QuestionMutableArray==nil) {
[self testIterator];
}
else
{
[myMutableArray release];
[myDictionary release];
[self dismissModalViewControllerAnimated:YES];
//[self release];
}
}
}
这段代码可以追溯到parentView控制器......当我再次来此的tableView后,我想重装我的tableView新的NSMutableArray。如何用dismissModalViewController清空我的集合(NSMutableArray或字典)?
- (无效)alertView:(UIAlertView中*)alertView clickedButtonAtIndex:(NSInteger的)buttonIndex { 如果(buttonIndex == 0){ \t \t \t \t [自dismissModalViewControllerAnimated:YES]; \t \t \t \t \t [QuestionMutableArray removeAllObjects]; \t \t \t \t XmlManipulatorObject = [[xmlManipulator alloc] init]; \t \t QuestionMutableArray = [[XmlManipulatorObject ReadXml] retain]; \t \t [self.tableView release]; \t \t \t \t }}我照你说的从Array.But删除所有对象我不是刚刚从那里我来到back.What可能是解决让我List.It的加载新的数据已经试过? – 2011-04-27 19:21:32