iOS: 2 Xib's with the same File's Owner for 1 IBOutlet object?

iOS: 2 Xib's with the same File's Owner for 1 IBOutlet object?,第1张

概述http://stackoverflow.com/questions/8978654/2-xibs-with-the-same-files-owner-for-1-iboutlet-object 若2个xib的file owner都指向同一个view controller,那么在2个xib不会同时被load的情况下,分别在不同xib上的控件可以指向view controller里的同一个IBout

http://stackoverflow.com/questions/8978654/2-xibs-with-the-same-files-owner-for-1-iboutlet-object


若2个xib的file owner都指向同一个vIEw controller,那么在2个xib不会同时被load的情况下,分别在不同xib上的控件可以指向vIEw controller里的同一个IBoutlet。

一个很典型的case是universal app,xib for ipad和xib for iphone都使用同一个vIEw controller,它们的控件可能会指向同一个IBOutlet。



同一个xib的不同控件一定不能share一个IBoutlet

http://www.iphonedevsdk.com/forum/iphone-sdk-development/67406-using-one-iboutlet-different-objects.html

总结

以上是内存溢出为你收集整理的iOS: 2 Xib's with the same File's Owner for 1 IBOutlet object?全部内容,希望文章能够帮你解决iOS: 2 Xib's with the same File's Owner for 1 IBOutlet object?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1091262.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存