If you've used the Reminders app on iOS 5, you've probably noticed how hitting return on your keyboard while adding an item creates another one in the next row. What is the best manner to implement this? Should the TableViewController conform to the UITextFieldDelegate or should the custom cell be in charge of it? If the latter, how should I inform the TableViewController?

有帮助吗?

解决方案

You should probably do the former. A controller is a controller; a cell is a view (cf. MVC).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top