In the viewDidLoad()
method of view controller I am calling
[NSThread detachNewThreadSelector:@selector(readFromFaceBook)
toTarget:self
withObject:nil];
readFromFaceBook
will pull the data from remote location and populates the data in NSMutabaleArray
called "myData". The view controller contains a tableView
which loads data from myData.
The problem I have is, how to delay the execution of tableView delegates until all the data is loaded into "myData" by the thread ..?? The program is crashing as delegate functions are trying to execute using myData . Any help is greatly appreciated...!!!!