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

前端 未结 5 1196
無奈伤痛
無奈伤痛 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:37

    Also note that this might happen (e.g. with the master/detail project template) if the

    "Other Linker Flags"
    

    value is set to

    -ObjC
    

    as required by some frameworks, e.g. RestKit (issue at RestKits github page: https://github.com/RestKit/RestKit/issues/1153)

提交回复
热议问题