I am receiving the above warning in my code. I looked up the method in the documentation and found it was declared in UINibLoading.h. I tried importing this, but the warning didn’t disappear.
I am receiving the above warning in my code. I looked up the method
Share
loadNibNamed:owner:options:is an instance method, as indicated by the leading-in the header file and in the documentation.If this were
that would have been a class method.
You need to first get the main bundle (i.e. the app bundle of the app you’re developing) by the class method
+mainBundle, and then applyloadNibNamed:owner:options:, as in