Simulator reverts to home screen if I delete a row in table view
I am using a table view displaying (say 16) rows of random data. If I delete a row, the simulator reverts to the home screen. If I touch to reload, I again have 16 rows of DIFFERENT random data. Same behavior if I scroll the screen.
Does anyone have an开发者_StackOverflowy ideas?
A revert to the home screen means your app has crashed. Run the app from the XCode Debugger to help find out where.
A UITableView is the View of MVC, not the Model. If you didn't store your random data in a Model object somewhere, the exact same data can't be redisplayed when the View refreshes and asks for data again.
精彩评论