Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

“BgTask “ ? how long execute?

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


Please Help Members By Posting Answers For Below Questions

Explain the difference between nsarray and nsmutablearray?

915


Explain parent-child context setup. How does it work? What are the advantages?

758


What are layer objects?

854


When dealing with property declarations, what is the difference between atomic and non-atomic?

1484


What is delegate in ios with example?

813


Explain arc?

852


How do I create a class in xcode?

868


What is the 'interface' and 'implementation'?

838


are you using charlesproxy ? Why/why not ?

933


What are layer objects and what do they represent in iOS operating system?

804


Explain code signing in ios?

844


What is category and class extension?

859


Explain how to shut off message alerts in ios?

747


How to switch off predictive text?

812


How to use core data objects between two threads?

809