Function 関数

protocol_addProtocol(_:_:)

Adds a registered protocol to another protocol that is under construction. ある登録済みプロトコルを、建設中の別のプロトコルに加えます。

Declaration 宣言

func protocol_addProtocol(_ proto: Protocol, 
                        _ addition: Protocol)

Parameters パラメータ

proto

The protocol you want to add the registered protocol to. あなたがこの登録済みプロトコルをそれへと加えたいプロトコル。

addition

The registered protocol you want to add to proto.

Discussion 解説

The protocol you want to add to (proto) must be under construction—allocated but not yet registered with the Objective-C runtime. The protocol you want to add (addition) must be registered already.

See Also 参照

Working with Protocols プロトコルを扱う