“BgTask “ ? how long execute?
Answer / 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 |
Introduction to iphone application development?
What are different instruments xcode supports for app profiling?
What is context in core data ios?
Can you please explain the difference between nsarray and nsmutablearray?
What’s the difference between not-running, inactive, active, background and suspended execution states?
Why uicontrol is provided if we can create custom uiview?
Explain UIView life cycles
Explain how to shut off message alerts in ios?
What is a singleton?
How to parse json?
What is the difference between strong and retain.
What is encapsulation in ios?