Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Compile your code even when application is in background

    • 0
    • 2
    • 3
    • 0
    • 0
    • 0
    • 0
    • 0
    • 223
    Comment on it

    When application enters in background the compiler stop working and it has to wait till application enter foreground.
    Use following code to compile some of your code even when application is in background

    bgTask = [application beginBackgroundTaskWithExpirationHandler:^{
    
        }];
    

    Dispatch async will awake all the async method which you have to compile in background.

    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
    }
    

    Hope this information help you...

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: