in Technology by (1.8m points)
Explain what is dot notation in Objective-C?

1 Answer

0 votes
by (1.8m points)

The dot syntax is just a shortcut for calling getters and setters, that is:

[foo length]


are exactly the same, as are:

[foo setLength:5]

foo.length = 5

Related questions

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