“BgTask “ ? how long execute?



“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

Post New Answer

More Apple iOS Interview Questions

How to implement "load more" using nsfetchedresultscontroller?

0 Answers  


Explain how you can add frameworks in Xcode project?

0 Answers  


What is difference between unit tests and ui test in xcode?

0 Answers  


Can a static library (.a) contain assets like pictures, sound documents and so on.?

0 Answers  


What is inactive state in ios?

0 Answers  






What is ipa?

0 Answers  


what is singleton class? Why the whole application creates a single instance?

1 Answers  


Have you uploaded app on appstore? What is the process?

0 Answers  


What is the difference between synchronous & asynchronous task ?

0 Answers  


What are the location services?

0 Answers  


Is it safe to update to ios 13?

0 Answers  


Differentiate ‘app id’ from ‘bundle id.’ Explain why they are used?

0 Answers  


Categories