Question

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?

Was it helpful?

Solution

There are few methods Apple suggests when customizing your UITableViewCell. You probably is trying to add subviews to the contentView of the cell. A better approach is described here Subclassing UITableViewCell. Well, I suggest you read the TableView Programming guide.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top