Properties in Objective-C @techytube
Properties in Objective-C  @techytube
Uploaded September 2012 | Updated September 2026, 2 weeks ago
For more videos on technology, visit Techytube.com

By Pavel@Techytube

Properties in Objective-C are some specific syntax commonly used in
this language.

Instead of declaring 2 methods (a getter and a setter) for each
variable or object declared inside our class, we can declare a
property that does that automatically for us.

We declare a property inside the interface file (after the closing "}"
), with the following syntax:

@property (nonatomic, strong) ClassName *propertyName; (for objects)

and

@property (nonatomic, strong) DataType propertyName; (for variables)

Then, in the implementation file, after the "@implementation
ClassName" line, we have to write:

@synthesize propertyName = _ propertyName;
, which will create the getter and setter on our behalf.
Properties in Objective-CPolicy based Managementtechytube Live Stream - Encrypt network communications with IPSec on Windows ServerSonicWall - Configure Non-Standard PortsMS SQL Server Profiler Basics - 2Windows 8 Development - Adding XAML Controls Part 1Working with UIProgressView objects in iOSdotNET 2.0/C# Deploying A Windows Service, Command-Line MethodWindows 8 Development - XAML Blog Reader IntroductionYum (Yellow Dog Updater Modified) Part 1 of 4RPM (Redhat Package Manager) Part 2 of 3Archiving and unarchiving objects in Objective-C
techytube |

Properties in Objective-C

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER