this is what i write
domaine *detailsDomaine = [search_result objectAtIndex:indexPath.row];
cell.textLabel.text = [NSString stringWithFormat:@"%@",[detailsDomaine valueForKey:@"nom"]];
Is it possible to not assign a variable (detailsDomaine)to reach the same result ?
Do i have to release detailsDomaine variable after that ?
I’m not using it anywhere else in the rest of the code…
It is possible not to create separate variable for this. Replace
detailsDomainein second row with your right side of assignment in first row:And no, you don’t have to release the
detailsDomaineobject afterwards since you did notretainit.