Error message when trying to insert method into touchesBegan

Posted by Rob on Stack Overflow See other posts from Stack Overflow or by Rob
Published on 2010-04-28T03:12:50Z Indexed on 2010/04/28 3:23 UTC
Read the original article Hit count: 211

I am trying to create a new method within my TapDetectingImageView file and it's giving me a warning that it cannot find the method even though I have it declared in the .h file.

The specific three warnings all point to the @end line in the .m file when I build it and they say: "Incomplete implementation of class 'TapDetectingImageView' ; 'Method definition for '-functionA:' not found" ; "Method definition for '-functionB:' not found"

What am I missing? Am I not allowed to do this in a protocol file like TapDetectingImageView?

In my .h file is:

@interface TapDetectingImageView : UIImageView <AVAudioPlayerDelegate> {

id <TapDetectingImageViewDelegate> delegate;

}

@property (nonatomic, assign) id <TapDetectingImageViewDelegate> delegate;

-(void) functionA:(NSString*)aVariable;
-(void) functionB:(NSString*)aVariable;

@end

In my .m file is:

-(void)functionA:(NSString*)aVariable {

// do stuff in this function with aVariable

}

-(void)functionB:(NSString*)aVariable {

// do stuff in this function with aVariable

}

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk