I have to add image in tableview in each. I have 2 list one is for twitter and second is for facebook. I want to show each list with their image icon. here is my code to attach value in table of twitter.
for (NSDictionary *wallText in sortedarray) {
NSString *wallNameValue = [wallText objectForKey:@"message"];
if(![[NSNull null] isEqual:wallNameValue] && [wallNameValue length])
{
[tableList addObject:wallNameValue];
}
}
I want to show twitter image in left of row. How will i add image.
Thanks in advance
Just try using in this Way:
& plus there is no need to run any loop for this.This is optimize your code.
Just access the array via indexpath.row
Hope you are going to do all these things in – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath .