“BgTask “ ? how long execute?

Answer Posted / babu

if you want to perform some long running in background you will do it with the help beginBackgroundTaskWithExpirationHandler:

Example:

bgTask = [app beginBackgroundTaskWithExpirationHandler:^{

[app endBackgroundTask:bgTask];

bgTask = UIBackgroundTaskInvalid;

}];

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What persistent storage core data uses to save data?

449


What is synchronous web request and asynchronous ?

449


Would I be able to keep in touch with some c++ work in the equivalent .m record? Will it compile? Assuming no, what changes would it be a good idea for me to do to compile it?

401


What is a serial queue?

455


What is mvc? Mvc architecture of iphone app.

439






How to implement "load more" using nsfetchedresultscontroller?

441


What is meaning of 'atomic' keyword?

526


What is a view controller in ios?

412


Why do we need to use @Synthesize in iOS operating system?

449


Do you know what is iphone sdk?

439


How to edit iphone code

450


What is onboarding and why is it so important for mobile design? : IOS Architect

456


Is realm db free?

471


What is nspersistentstore?

548


How to switch off predictive text?

461