I am using ARC with TWRequest. I have successfully returned a search from twitter and created an array of the results. Here is my code...
NSArray *results = [dict objectForKey:@"results"];
//Loop through the results
NSMutableArray *twitterText = [[NSMutableArray alloc] init];
for (NSDictionary *tweet in results)
{
// Get the tweet
NSString *twittext = [tweet objectForKey:@"text"];
// Save the tweet to the twitterText array
[twitterText addObject:twittext];
}
NSLog(@"MY ************************TWITTERTEXT************** %@", twitterText ); </p>
My question is, I want to use twitterText later in the .m file under cellForRowAtIndexPath but as soon as the loop through (as above) is finished it is being released under ARC. I have set the property as strong in my .h file (as well as declaring it above just prior to the loop). Printing a log straight after the loop through as above prints the twitterText Array fine but the same Log in cellForRowAtIndex path method returns a blank. Any help would be appreciated. Thanks. Alan