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
Explain the difference between nsarray and nsmutablearray?
Explain parent-child context setup. How does it work? What are the advantages?
What are layer objects?
When dealing with property declarations, what is the difference between atomic and non-atomic?
What is delegate in ios with example?
Explain arc?
How do I create a class in xcode?
What is the 'interface' and 'implementation'?
are you using charlesproxy ? Why/why not ?
What are layer objects and what do they represent in iOS operating system?
Explain code signing in ios?
What is category and class extension?
Explain how to shut off message alerts in ios?
How to switch off predictive text?
How to use core data objects between two threads?