Users Pricing

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 Kumar 2072 31 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?


Tarun Kumar

Other


1 Answers