I wrote a function which returns an object. But it is a function which takes data from web.So NSthread is used to call the function.
NSThread* pageThread = [[NSThread alloc]initWithTarget:self selector:@selector(threadFunction) object:nil];
How to get a return value from a function which is called through NSthread?