开发者

what is use of Formal Protocol Object

We can create protocol object in source code but what is us开发者_运维知识库e of formal Protocol object?

Protocol *myObj = @protocol(protocolName);


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

[anotherObject conformsToProtocol:myObj];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜