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

前端 未结 5 1271
刺人心
刺人心 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条回答
  •  梦毁少年i
    2021-01-24 05:43

    There are several ways to do this. I, personally, use a third-party class to house strings and just reference that class as I move between UITableViews.

提交回复
热议问题