且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从一个选项卡保存数据,然后在另一个选项卡中重新加载数据

更新时间:2021-07-07 06:32:10

我在您的逻辑中找不到任何问题.但是,为什么不以不同的方式尝试它呢?可以使用[UIApplication sharedApplication] .delgate将项目的值委托给那里的数组,然后从第二个选项卡从那里访问它.因为您将从两个选项卡访问同一对象,所以加载不会有任何问题.

I cant find any problem in your logic. But why dont you try it in a diffent way. Projects application delegate could be accessed using [UIApplication sharedApplication].delgate set Values to an array there and access it from there from the second tab . since you would be accessing same object from two Tabs there wont be any problem in loading.