We can create protocol object in source code but what is use of formal Protocol object?
Protocol *myObj = @protocol(protocolName);
We can create protocol object in source code but what is use of formal Protocol object?
Protocol *myObj = @protocol(protocolName);
You can use it to check if an object conforms to a protocol.
[anotherObject conformsToProtocol:myObj];