문제

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