“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 |
Can we support the same application for iphone 3gs and iphone 5, 6, 7? Why not?
Explain the options and bars available in xcode 4.x workspace window in iOS operating system
What is a fault?
Explain retain counts in iOS operating system?
What happens when you invoke a method on a nil pointer?
what is the use of PO command in Xcode?
How to use reusable cell in uitableview?
Why do we override drawrect: method? How to explicitly call it?
. List down app's state transitions when it gets launched.
What is application lifecycle in ios?
what’s accessibilityhint?
What is the architecture of ios?