I'm new in Xcode Programming and I'm developing a small application but I have a problem.
I have a Table View with a Custom Cell, taking externally the data to populate the view (by JSon). I have a big slow navigation in list because in the method - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
. I get an external image and this makes it all slow because it runs every time a cell displayed.
How can I populate the entire list without using this method? Or is there an alternative to make it understand that the image exists?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { Cell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"]; [cell.img setImage:[UIImage imageWithData:[NSData dataWithContentsOfURL:url]]];return cell; }
– Skiddolo Sep 19 '12 at 15:04