reloaddata

self.tableview reloadData causing crash in UITableView

I'm getting this crash when selecting a row: '-[__NSCFArray objectAtIndex:]: index (1) beyond bounds (1)', I moved the data out of the viewWillAppear because we though it was causing a crash. I now have it loading on ViewDidLoad. However if the [self.tableview reloadData]; is on, I get this crash. Ideas? -(void) loadData3;{ ...

Reload UITableView conditionally based on SegmentedControl

I would like to reload a table view conditionally based on the value of a segmented control, when a button is tapped. So in my buttonTapped method, i have this code which randomly selects an array item. In the else block i would like to remove the selected item from the array to prevent the same item being selected again, currently I re...

[iPhone] UITableView reloadData many times cause memory leak and slow down application

I made a mistake when using Leaks instrument that I thought total living objects is byte of memory, so I updated my post! [Updated] Hello All, I am facing with a problem that: My application present realtime data by using UITableView which may contains maximum 34 customized cells, so when receiving update data, I have to do reloadDat...