How can I get Xcode if the IBOutlet of one of my objects is not connected to anything in the NIB?
I can verify that the sockets are plugged in at run time by adding assert(ofEveryOutlet);to awakeFromNibor viewDidLoad. But this is not so useful or reliable as the compiler does the check for me.
assert(ofEveryOutlet);
awakeFromNib
viewDidLoad
(Compiled) NIB files are downloaded and attached at runtime, so I don't think the compiler can check this. I think your best choice is the statements you have already proposed ...
Unit Test, IB . , , . . http://blog.carbonfive.com/2010/03/testing/testing-view-controllers
Source: https://habr.com/ru/post/1737023/More articles:Convert scientific notation to decimal notation - javaLINQ dynamic group on demand in ASP.NET MVC - c #Avoiding automatic renaming of signature parameters in visual base 6 - ideПередача данных из GSP в контроллер в Grails - grailsGetting average of 3 columns in SQL Server - sqlProviding Zend Navigation Pages Multiple ACL Privileges - phpAlternative API WhitePages? - jsonКогда вызывается DllMain с флагом DLL_PROCESS_VERIFIER? - c++Serialization through the J2ME or BlackBerry API - serializationUsing the xsl: variable in an xsl: foreach select expression - variablesAll Articles