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

How are non-atomic and atomic properties different? Which one is the default property for synthesized properties?

770


What is the responder chain?

823


What are ibeacons?

829


Explain @synchronized ,@dynamic

1661


Will iphone 7 get ios 13?

751


What is the purpose of reuseidentifier?

844


Are the nsmanagedobjectcontext queues serial or concurrent?

812


What is mvc pattern in ios?

860


How do you check if your code has memory leaks?

857


How to register as a iphone developer?

864


What is the difference between copy and retain?

774


What is the purpose of ios?

815


How do I get rid of app errors on iphone?

752


What is use of uiapplication class?

822


How to edit iphone code

780