Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If performance matters, you might consider using an <a href="http://allseeing-i.com/ASIHTTPRequest/" rel="nofollow">ASIHTTPRequest</a> to fetch the json asynchronously, then inside the requestFinished: you might do something like:</p> <pre><code>- (void)requestFinished:(ASIHTTPRequest *)request { // Use when fetching text data NSString *responseString = [request responseString]; //assuming you created a property instance variable NSArray *myArrAssignmentTitles NSArray *tempArray = [responseString JSONValue]; //making an array of assignment_title NSMutableArray *tempMutArray = [[NSMutableArray alloc] init]; int i; for(i = 0;i &lt; [tempArray count];i++){ [tempMutArray addObject:[[tempArray objectAtIndex:i] objectForKey:@"assignment_title"]]; } //assign the data to the instance variable NSArray *myArrAssignmentTitles self.myArrAssignmentTitles = tempMutArray; //release tempMutArray since the instance variable has it [tempMutArray release]; //call the reload table [self.tableView reloadData];//i think this is how to reload the table } - (void)requestFailed:(ASIHTTPRequest *)request { NSError *error = [request error]; } </code></pre> <p>So, your myArrAssignmentTitles has all the values assignment_title from json all you do is just apply the array data for the cell e.g.</p> <pre><code> cell.textLabel.text = [self.myArrAssignmentTitles objectAtIndex:indexPath.row]; </code></pre> <p>its a long code sorry about that. But, thats works for me xD; it fetches the json asynchronously after that it creates an array of assignment_title hopes it helps. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload