“No visible @interface for 'BlahDataController' declares the selector 'aMethod:'”

前端 未结 5 1183
無奈伤痛
無奈伤痛 2020-12-08 14:12

A simple example of my problem:

\"Within the BlahDataController.h\"

@interface BlahDataController : NSObject
-(NSString *)aMethod:(NSString *)theStri         


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-08 14:46

    Yes I had the same problem. I had this working perfect in my Paid Target though when I changed to my Free Target I got this error.

    No visible @interface for 'GameOverScene' declares the selector mesageToDisplayOnLabel:

    • to fix this the spelling of my method call was different to the method I was calling.

      -(void)messageToDisplayOnLabel //I'm missing the s in "message" in my method call Doh!
      {
      //method code
      }

    • check the spelling of the method you are calling might help.

提交回复
热议问题