forum

Home / DeveloperSection / Forums / Performance difference between dot notation versus method call in Objective-C

Performance difference between dot notation versus method call in Objective-C

Tarun Kumar177331-Jul-2015

You can use a standard dot notation or a method call in Objective-C to access a property of an object in Objective-C.

myObject.property = YES;

or

[myObject setProperty:YES];

Is there a difference in performance (in terms of accessing the property)? Is it just a matter of preference in terms of coding style?


Updated on 01-Aug-2015

Can you answer this question?


Answer

1 Answers

Liked By