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

What is delegate protocol in ios?

698


Which is the framework that is used to construct application’s user interface for ios?

726


Why do you generally create a weak reference when using self in a block?

823


Describe the functionality of accelerometer of an iphone ?

773


Does ios have garbage collection?

726


Explain difference between release and autorelease?

776


Explain about AFNetworking. What is the base class used in AFNetworking library

2138


How do you decide when to use infinite scroll or pagination in ios? : IOS Architect

829


What is difference between synchronous and asynchronous in web request in iOS operating system?

778


Explain xctest test case code.

754


What is difference strong and weak reference ? Explain.

789


What is libdispatch?

824


What is mvc in ios swift?

815


When to use nsmutablearray and when to use nsarray?

722


What is uikit in ios?

771