One Logo Pool Ball
ObjectiveC · IOS API REFERENCE

Selector

struct · iOS 1.0+ · SDK 27.1

@frozen struct Selector

The Objective-C SEL type. The Objective-C SEL type is typically an opaque pointer. Swift treats it as a distinct struct type, with operations to convert between C strings and selectors. The compiler has special knowledge of this type.

Members (4)

get · iOS 1.0+

description

TypeScript
get description(): string
Swift declaration
var description: String { get }

A textual representation of `self`.

get · iOS 1.0+

customMirror

TypeScript
get customMirror(): SDKHandle
Swift declaration
var customMirror: Mirror { get }

Returns a mirror that reflects `self`.

init · iOS 1.0+

init

TypeScript
static initStringLiteral(value: string): Selector
Swift declaration
init(stringLiteral value: String)

Create an instance initialized to `value`.

init · iOS 1.0+

init

TypeScript
static init(str: string): Selector
Swift declaration
init(_ str: String)

Create a selector from a string.

Skipped declarations

No declarations were skipped in this snapshot.

All ObjectiveC types →