且构网

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

使用可可绑定时的变化不会在视图反映

更新时间:2023-09-30 12:50:10

我认为问题是,你设置的应用程序委托类的xibs的对象来创建应用程序委托的2个不同的实例,所以改变的价值文本字段改变一个实例,但不是在其他名称的值。这就是你做错了什么,可惜,我想不出在这个时候解决的。

I think the problem is that the objects in your xibs that you set to the app delegate class create 2 different instances of the app delegate, so changing the value of the text field changes the value of name in one instance but not in the other. That's what you're doing wrong, unfortunately, I can't think of a solution at this time.