objective-cobjective-c-protocol

Defining protocols without parameters


I am trying to define a protocol method without adding parameters but couldn't find the correct syntax.

Here is the definition (it has a syntax error)

- (void)cameraOverlayView:(CameraOverlayView *)cameraOverlay didTakePhoto;

I don't want to pass any values with the second parameter. My aim is only to signal that something happened to the delegate instance.

How should I write the definition?


Solution

  • - (void)cameraOverlayViewDidTakePhoto:(CameraOverlayView *)cameraOverlay;