0
메서드를 완료하는 데 몇 초가 걸리기 때문에 뷰를 표시하려고합니다. 그러나 전체 메서드가 완료 될 때까지로드 UIWindow는 실제로 키와 표시가되지 않습니다. 무슨 일이 벌어지고 있는거야?메서드가 완료 될 때까지 UIWindow가 표시되지 않습니다.
// this line creates a uiwindow with view controller as root view controller, an activity indicator, and a label and makes the loading view key and visible
[XSELLoadingView presentLoadingViewWithTitle:@"Generating Report"]; // use loading view for long times
// these three lines process a lot of data and present the view on the main window
XSELCount *startCount = [[XSELCount counts] objectAtIndex:[self.startingPick selectedRowInComponent:0]];
XSELCount *endCount = [[XSELCount counts] objectAtIndex:[self.endingPick selectedRowInComponent:0
[self.navigationController pushViewController:[XSELReportView viewWithReportData:[XSELReportData compareStartCount:startCount toEndCount:endCount]] animated:false];
// this line makes the main view key and visable
[XSELLoadingView dismissLoadingView];
XSELLoadingView는 현재 창의 맨 위에있는보기뿐만 아니라보기가있는 창을 표시합니다. – Scott
백그라운드에서 긴 처리를 수행해야합니다. – rmaddy