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

By Pavel@Techytube

Automatic Reference Counting (shortly named ARC), is a new feature
that we can use developing apps for the latest iOS versions. Prior to
ARC, developers had to do all the memory management manually.

The way we allocate memory for an object in memory is by calling the
alloc method on for that object, and the way we initialise that object
is by calling the init method.

All the time, when we manage memory by ourselves, we should call the
release message to the objects that were allocated by us - one release
call for each alloc/init combination.
It is a very good practice, and also, this will prevent the memory
leaks in our apps.

When using ARC, if we try to call the release method, we get a
compile-time error, because the compiler does not allow that, as it
automatically inserts that for us.
Memory management in Objective-CAn introduction to developing for iOSASP.NET - Page Life CycleVMWare vCenter OrchestratorWindows 8 Development - Navigation via ItemClick EventWindows 8 Development - Adding A XAML GridCreating your first iOS app in XcodeWindows 8 Development - Restoring State XAML Part 1Properties in Objective-CPolicy based Managementtechytube Live Stream - Encrypt network communications with IPSec on Windows ServerSonicWall - Configure Non-Standard Ports
techytube |

Memory management in Objective-C

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER