cocoa touch - NSBundle may not respond to +loadNibNamed:owner:options: -


I am getting the above warning in my code. I saw the method in the document and found that it was UINibLoading. H . I tried to import it, but the warning did not disappear.

loadNib enrolled: owner: option: is an example method, as Head and more in header file in - . Is shown in. Name (NSArray *) loadNib named: Owner of Name (NSString *): (ID) Owner Options: (NSDrment *) option

If this

  + (NSArray *) loadNibNamed: (NSString *) Name the owner: (ID) Owner Options: (NSDrment *) option  

This is a Class was the method.

You first apply to the main bundle i.e. class method + main bundle , ie app bundle, + mainBundle , and then named loadNib : Owner: choice: , as

  [[NSBundle mainBundle] loadNibNamed: @ "foo" owner: self choice: zero];  

Comments