와 메모리를 누출하는 것은 어쩌면 사람이 이상한 것 좀 도와 수 있습니다 : 버튼에 사용자가 클릭이 새로운 jQuery과이 탐색 컨트롤러로 보내지면아이폰 SDK - performSelectorInBackground
. 이 새로운 뷰는 약간의 시간이 걸리는 데이터베이스 쿼리를 수행하고 있습니다. 그래서 백그라운드에서 로딩을하고 싶었습니다.
WorkController *tmp=[[WorkController alloc] initWithStyle:UITableViewStyleGrouped];
self.workController=tmp;
[tmp release];
[self.workController loadList]; // Does the DB Query
[self.workController pushViewController:self.workController animated:YES];
은 지금이하려고 노력 :
// Show Wait indicator
....
WorkController *tmp=[[WorkController alloc] initWithStyle:UITableViewStyleGrouped];
self.workController=tmp;
[tmp release];
[self performSelectorInBackground:@selector(getController) withObject:nil];
}
-(void) getController {
[self.workController loadList]; // Does the DB Query
[self.navigationController pushViewController:self.workController animated:YES];
}
이것은 또한 작동을하지만, 메모리 및 I를 유출 메모리가 누수없이 작동합니다 (그러나 모든 것이 완료 될 때까지 화면을 정지) 무엇
왜 그런지 모르겠다! 도와 드릴까요? 그런데
-이 앱은 작은 메모리 누수와 앱 스토어에 들어갈 수 있습니까? 또는 이것을 먼저 점검 할 것인가?
미리 감사드립니다.
누출 위치는 어디입니까? –
안녕하세요, getController 메서드 내에 누수가 있습니다. – Steblo
음, 어디서? workController를 해제하지 마십시오 ?? –