“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 |
Explain what is iphone architecture?
What are the benefits of ios?
What happens when we invoke a method on a nil pointer?
What are selectors in objective-c?
. Apart from incorporating views and controls, what else an app can incorporate?
what are the build phases available in Xcode?
What is posing in iOS?
What is difference between weak and strong in ios?
What is a background thread?
What is meaning of 'atomic' keyword?
What is the full meaning of ios?
Why do we use synchronized ?