Hi all.
In my iHpone app, i am showing an alertview in a separate thread, while the main carry on with some parsing...
I call the showAlertView: method using [NSThread detach........] method..
I created the alertview as a property and i dismiss it after downlaoding completed in main Thread.
But i want to change the message of the alertview in middle of downloading to show which file i am parsing...
my code is like below.
But the message is not changing , it remains same as what i used to initialize the alertview in thread...
In my iHpone app, i am showing an alertview in a separate thread, while the main carry on with some parsing...
I call the showAlertView: method using [NSThread detach........] method..
I created the alertview as a property and i dismiss it after downlaoding completed in main Thread.
But i want to change the message of the alertview in middle of downloading to show which file i am parsing...
my code is like below.
Code:
// call showAlertView as a thread here
[B]//loop start (4 times)[/B]
//parse file number n here
alertview.message = [NSStirng stringWithFormat:@"Downlaoding %d th file",i];
[B]end of loop[/B]
//alertview dismissing here
//alertview release here
But the message is not changing , it remains same as what i used to initialize the alertview in thread...