3

We can create protocol object in source code but what is use of formal Protocol object?

Protocol *myObj = @protocol(protocolName);
byJeevan
  • 3,728
  • 3
  • 37
  • 60
Parag Bafna
  • 22,812
  • 8
  • 71
  • 144

1 Answers1

5

You can use it to check if an object conforms to a protocol.

[anotherObject conformsToProtocol:myObj];
hypercrypt
  • 15,389
  • 6
  • 48
  • 59