Keywords for memory management:
3. Auto release
5. Auto Release Pool
This is specifies that you are instead in putting a owner ship client on the object if the color release the object it doesn’t de-allocated because you retained it. Increases the retain count ‘1’
Syntax:- [obj retain];
We call release when we use done using on object we are no longer owner of the object. So reference count is decreased by owner.
Then the object is automatically deleted and memory is freed otherwise the object states in memory for other owner to use.
Syntax:- [obj release];
This means that you need the object temporarily, and doesn’t make you an owner.
It just like saying I need this object is noun keep it in memory while I do a few thing with it then you can delegate it.
This object creates a copy of the objects and you become a owner of the new object.
Syntax:- Ns string *str= [str2 copy];
An auto release pool is an instance of ns auto release class and defines a slope for temporary objects [objects which are to be auto release]
NS auto release pool * pool= [(NSAutoReleasePool alloc]int];
//str is auto release object adding to the pool.
Ns string *str = [NSString stringwithstring:@”Hai”];
// when release pool it sends release message to all objects of its;
When we pass drain for object it deal locate the all the objects in a pool.
Ex:- [pool drain];
In preparing your device to install an Iphone apps we have to create decertificates.
It contains information used to generate your development certificate this certificate is development in key chain is present in MAC os
A development certificate identifies an IOS application developer after the csr is a approved we download developer certificate from the portal and added to the key chain.
It is generated from portal whenever we install provisioning profile and I phone the device becomes alive for developing application through x code.
Eg:- USA friend
Device registration: Apple provides 100 devices testing for standard program every I phone as unique device it is a 40 digit nor you should registered this in portal.
Every application has unique app ID it is also generated from portal.
Note:- Distribution of over app to the device can be done through distribution profile, and we should convert over final product app file IPA this over distribution is called ad hoc distribution.
Enroll for Live Instructor Led Online IOS DEVELOPMENT TRAINING
Get Updates on Tech posts, Interview & Certification questions and training schedules