Function

method_copyArgumentType(_:_:)

Returns a string describing a single parameter type of a method.

Declaration

func method_copyArgumentType(_ m: Method, _ index: UInt32) -> UnsafeMutablePointer<Int8>?

Parameters

method

The method to inspect.

index

The index of the parameter to inspect.

Return Value

A C string describing the type of the parameter at index index, or NULL if method has no parameter index index. You must free the string with free().

See Also

Working with Methods

func method_getName(Method)

Returns the name of a method.

func method_getImplementation(Method)

Returns the implementation of a method.

func method_getTypeEncoding(Method)

Returns a string describing a method's parameter and return types.

func method_copyReturnType(Method)

Returns a string describing a method's return type.

func method_getReturnType(Method, UnsafeMutablePointer<Int8>, Int)

Returns by reference a string describing a method's return type.

func method_getNumberOfArguments(Method)

Returns the number of arguments accepted by a method.

func method_getArgumentType(Method, UInt32, UnsafeMutablePointer<Int8>?, Int)

Returns by reference a string describing a single parameter type of a method.

func method_getDescription(Method)

Returns a method description structure for a specified method.

func method_setImplementation(Method, IMP)

Sets the implementation of a method.

func method_exchangeImplementations(Method, Method)

Exchanges the implementations of two methods.