“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

Introduction to iphone application development?

1 Answers  


What are different instruments xcode supports for app profiling?

1 Answers  


What is context in core data ios?

1 Answers  


Can you please explain the difference between nsarray and nsmutablearray?

1 Answers  


What’s the difference between not-running, inactive, active, background and suspended execution states?

1 Answers  


Why uicontrol is provided if we can create custom uiview?

1 Answers  


Explain UIView life cycles

1 Answers  


Explain how to shut off message alerts in ios?

1 Answers  


What is a singleton?

1 Answers  


How to parse json?

1 Answers  


What is the difference between strong and retain.

1 Answers  


What is encapsulation in ios?

1 Answers  


Categories