in Technology by (1.8m points)
What is id in Objective-C?

1 Answer

0 votes
by (1.8m points)

id is a pointer to any type, but unlike void * it always points to an Objective-C object. For example, you can add anything of type id to an NSArray, but those objects must respond to retain and release .

Related questions

0 votes
asked Nov 10, 2020 in Technology by JackTerrance (1.8m points)