Performselector not call in NSThread

Posted by abdulsamad on Stack Overflow See other posts from Stack Overflow or by abdulsamad
Published on 2010-05-06T06:47:29Z Indexed on 2010/05/06 6:48 UTC
Read the original article Hit count: 235

Filed under:
|
|

Hi all,

I have a problem that i want to call a function when one of my functions that is running into a seperate thread comes to an end.

its like that [NSThread detachNewThreadSelector:@selector(fetchFeaturedFreeApps) toTarget:self withObject:nil];

here is my fetchFeaturedFreeApps function

-(void)fetchFeaturedFreeApps { ////all my code

[self performSelector:@selector(closeView) withObject:nil afterDelay:4.0]; }

My problem is that the close view methods doesnt run after the 4 seconds.

Hoew if i call the fetchFeaturedFreeApps method with perform selector then my closeview metod is called properly.

Your valuable help is highly appreciated.

© Stack Overflow or respective owner

Related posts about objective

Related posts about c