开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜