Your -(void)setup:(C4Image *)image;
needs to be declared n the .h
file of the class, otherwise no other objects will be able to call it.
You .h should look something like:
@interface CropPhoto
-(void)setup:(C4Image *)image;
@end
The reason for this is that setup:(C4image*)...
is a custom method that you are implementing on your own, so you need to make it visible.
There could be a lot of other reasons as well.* Check out the following answers for different scenarios that generate the same issue:
https://stackoverflow.com/a/10387710/1218605