“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 |
What is @dynamic in objective-c ?
What is ios application?
What is mvp in ios?
Explain ~/documents, ~/library, ~/tmp. What directory is ~ on ios?
How can we achieve singleton pattern in iOS?
When can you get ios 13?
So how is the new look different from the old look?
An app is loaded into memory but is not executing any code. In which state will be in?
What are ibeacons in ios? : IOS Architect
How to download something from the internet?
Whats the difference between frame and bounds?
Does ios support multiple inheritance?