Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

waterskier2007

macrumors 68000
Original poster
Jun 19, 2007
1,877
243
Novi, MI
I am using the asynchronous request of NSURL connection, but I want to pop up an alert if there is an error (by looking at the error in the completion handler). The problem is that I generate an exception. I believe this is because I am calling UIKit from a secondary thread.

I was expecting this, so I set up a method on my view controller to present an alert and tried calling that method from within my completion handler using the [self performSelectorOnMainThread] but it still does not work.

Does anyone have any idea how I may be able to remedy this?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.