Passing model objects from one view controller to another in a navigation stack

前端 未结 5 1277
刺人心
刺人心 2021-01-24 04:58

I have two UITableViewControllers. One displays a list of names and on tapping any cell will push the second TableViewController which enables the user to edit the name in a UIT

5条回答
  •  遥遥无期
    2021-01-24 06:00

    Maybe you should take a look at the delegate pattern which could save you a lot of time ! :-)

    You know it's like using an UITableView datasource. With a delegate (or datasource), you can ask or set informations to a root controller.

    Maybe it's the best option ! (so google "objective-c delegate")

    Good luck !

提交回复
热议问题