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 view controller xcode?
Explain me how to parse xml?
Explain how an autorelease pool works at the runtime level in iOS
Explain the difference between 'protocol' and 'delegate'?
How to deal with sqlite database?
What happens when we invoke a method on a nil pointer?
Explain formal protocols?
What are the location services?
What is mvc in ios?
Which language is used in ios?
What is the difference between copy and retain?
What is difference between 'protocol' and 'delegate'?
Explain what is ios?
What are the different delete rules that a relationship can have?
What is a view controller in ios?