I'm downloading and parsing a XML document. During this, I want to update my UIProgressView. I know I have to do this in the main thread, and not in the background thread where the document gets parsed.
But my problem is, when I try this:
[self performSelectorOnMainThread:@selector(setProgressStr) withObject:[NSString stringWithFormat:@"%f", updateTo] waitUntilDone:NO];
I send it via a NSString, because a float won't work. But now I get the next error:
-[TDFetch setProgressStr]: unrecognized selector sent to instance 0x6b9a700
What am I doing wrong?