开发者

Simulator reverts to home screen if I delete a row in table view

开发者 https://www.devze.com 2023-01-27 10:08 出处:网络
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 be

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号