How do I pass a string or data object between two view controllers?

前端 未结 2 695
梦谈多话
梦谈多话 2021-01-28 01:00

In my last question I asked how to best send a string from one view controller to another, both which were on a navigation stack: Pass string from tableviewcontroller to viewcon

2条回答
  •  野性不改
    2021-01-28 01:52

    My first thought is that you should pass say the NSData object to the pushed view controller. If it's not too large it will save you from loading it again.

提交回复
热议问题