UIAlertview hanging while the thread in background is loading data
问题 I have a UIBarButtonItem called "Refresh Data". When user clicks it, the app should refresh its data. What happens on that button click is web services are launched and xml data is brought and they are of the order 30000-40000 records. So to prevent UI from hanging i wrote a background thread and did that loading there. - (void)refreshDataAction { NSLog(@"Refresh Data"); //Put up an alert box indicating user to wait while data is loading. UIAlertView *alert = [[UIAlertView alloc]