Is accessing the private ivar
linked to a property inside of a class method more efficient than using its synthesized getter/setter methods, or is the efficiency just the same? ...As in:
@implementation MyApp
@synthesize name;
- (void)loadView
{
_name = @"Savagewood"; // VS.
self.name = @"Savagewood";
}
@end
I'm guessing the latter takes more time to execute but I want to know what they suggest App developers to use for the sake of consistency and good programming technique and whether both assignments are basically of the same time complexity.