iphone - unrecognized selector AGAIN -


There are many questions related to this type of iPhone; I know; I read from him as long as I'm not learning anything new, all (A) posting and (b) in an effort to avoid looking for a powerful green color.

  @interface CommonCostingClass: NSObject {} - (zero) CCCC; @end  

This is the whole thing as little as I can make it. I have resorted to UIUVV instead of NISbject. CommonCostingClass.m I have

  #import "CommonCostingClass.h" @implementation CommonCostingClass - (zero) theCCC {// blah-blah}  

Again, it's all coded inside MyViewController I

  #import "CommonCostingClass.h" - (BOOL) textFieldShouldReturn: (UITextField *) textField {if (textField.tag == 4) { [(CommonCostingClass * See CCCC itself); // & lt; -k-boom} // other stuff}  

There is no difference between the presence / absence of artists.

Generates self.view * - [UIView theCCC]: Unexpected selector sent for example 0x5d3dd20 2010-07-20 11: 30: 54.732 Wind 17 [3233: 207]

The same message itself Generates, with replacement

Not all targets have been cleaned.

I know neither UIView nor myView controller "see" method "theCCC".

I do not know how to say, "This is it! This is!"

Thanks for the help. Someday this situation is ridiculous and will not be embarrassed.

Looks like you really want

  + (zero ) TheCCC;  

("+" note) which is a class method, you will only call

  [CommonCostingClass theCCC]  

Actually there is no secret of "unknown selector". This means that the first thing in the bracket (self.view in your case) is not understood (the law) and why would it happen?

You have declared a type of class, but if you have to be an example to use that class, how do you feel that an example of a general costing class was made?


Comments