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
What is delegate protocol in ios?
Which is the framework that is used to construct application’s user interface for ios?
Why do you generally create a weak reference when using self in a block?
Describe the functionality of accelerometer of an iphone ?
Does ios have garbage collection?
Explain difference between release and autorelease?
Explain about AFNetworking. What is the base class used in AFNetworking library
How do you decide when to use infinite scroll or pagination in ios? : IOS Architect
What is difference between synchronous and asynchronous in web request in iOS operating system?
Explain xctest test case code.
What is difference strong and weak reference ? Explain.
What is libdispatch?
What is mvc in ios swift?
When to use nsmutablearray and when to use nsarray?
What is uikit in ios?