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
How are non-atomic and atomic properties different? Which one is the default property for synthesized properties?
What is the responder chain?
What are ibeacons?
Explain @synchronized ,@dynamic
Will iphone 7 get ios 13?
What is the purpose of reuseidentifier?
Are the nsmanagedobjectcontext queues serial or concurrent?
What is mvc pattern in ios?
How do you check if your code has memory leaks?
How to register as a iphone developer?
What is the difference between copy and retain?
What is the purpose of ios?
How do I get rid of app errors on iphone?
What is use of uiapplication class?
How to edit iphone code