protocol_getProperty(_:_:_:_:)
Returns the specified property of a given protocol.
Declaration
func protocol_getProperty(_ proto: Protocol, _ name: UnsafePointer<CChar>, _ isRequiredProperty: Bool, _ isInstanceProperty: Bool) -> objc_property_t?Parameters
- proto:
A protocol.
- name:
The name of a property.
- isRequiredProperty:
A Boolean value that indicates whether
nameis a required property. - isInstanceProperty:
A Boolean value that indicates whether
nameis an instance property.
Return Value
The property specified by name, isRequiredProperty, and isInstanceProperty for proto, or NULL if none of proto’s properties meets the specification.
See Also
Working with Protocols
objc_getProtocol(_:)objc_copyProtocolList(_:)objc_allocateProtocol(_:)objc_registerProtocol(_:)protocol_addMethodDescription(_:_:_:_:_:)protocol_addProtocol(_:_:)protocol_addProperty(_:_:_:_:_:_:)protocol_getName(_:)protocol_isEqual(_:_:)protocol_copyMethodDescriptionList(_:_:_:_:)protocol_getMethodDescription(_:_:_:_:)protocol_copyPropertyList(_:_:)protocol_copyProtocolList(_:_:)protocol_conformsToProtocol(_:_:)