UITableView cellForRowAtIndexPath occasionally not called?

Posted by Tobster on Stack Overflow See other posts from Stack Overflow or by Tobster
Published on 2010-05-20T16:36:17Z Indexed on 2010/05/20 16:40 UTC
Read the original article Hit count: 213

I'm developing a graphing application that on the main navigation/tab view displays a UIView that renders a graph using openGL. Beneath that view is a UITableView that displays the list of elements on the graph, and an add button.

Occasionally, when the user clicks on another tab, and then returns to the graph view tab, the table view does not get redrawn.

I have a [tableView reloadData] method being called in the navigation controllers' (also the table view's delegate and data source) viewDidAppear method.

numberOfSectionsInTableView and numberOfRowsInSection get called, but cellForRowAtIndexPath does not despite both latter methods returning positive values.

This is an intermittant problem, only happening some of the time, but it's not clear what (if anything) influences this.

Does anyone have any ideas?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c