I have a iOS app that, in a nutshell, uses a UITableView and a few buttons to change out the contents of the table. I was getting an error earlier in the development regarding the number of rows being inconsistent before and after a reloadData call but then found out what I was doing incorrectly.
Now however I'm getting a report from a tester that his iPad 1 is crashing, and looking at the stack trace I can see that the same error, as described above, is happeing. But all other iPad 2 testers seem to work correctly and they are all using the same data sets to populate the tables.
Here is how I am populating the tableview:
[tableviewController.data removeAllObjects] //Delete the old data. Tableviewcontroller is the delegate for self.tableview
[self.tableview performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:NO];
[tableviewController setData:[newDataSetArray mutableCopy]]; //Copy over a new dataset array
[self.tableview performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:NO];
If anybody has any idea why this might be happening and could point it out I would really appreciate it.
編集:さらにいくつかの詳細。この問題について聞いた後、テスターにアプリのローカル コピーを削除してもらい、最新バージョンを取得してもらいました。さらに、彼と他のテスターは全員 iOS 5.1.1 を実行しているため、私が見る限り唯一の矛盾はハードウェアのバージョンです。しかし、これは意味がありません:/