0 votes
in Technology by (321k points)
Explain what is dot notation in Objective-C?

1 Answer

0 votes
by (321k points)

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

[foo length]

foo.length

are exactly the same, as are:

[foo setLength:5]

foo.length = 5

...