나는 버튼을하기를 클릭에 다음과 같은 일을 할 :"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];
}
}
}
내가 다시이있는 tableView를 내려왔다 때 ...이 코드를 다시 parentView 컨트롤러로 가기 후에 내가 새 NSMutableArray를 내있는 tableView를 다시로드합니다. 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 }} 당신이 난 그냥 내가 돌아 왔을때는 해결책이 될 수있는 출처에서 내 List.It의로드에서 새로운 데이터를받지 오전 Array.But에서 모든 개체를 제거 말했듯이 내가 시도? –