How to delay the disappearance of splash screen and parallelly run a webservice in background in iOS objective C? -


i have integrated branch.io(https://branch.io/) in app deep linking. here response getting in branch handler has slight delay. once response other processing , decide whether navigate first screen or second screen.

the problem before getting branch response, first screen displayed. want delay splash screen while (which not of people not have option probably). referred various links, how can display splash screen longer on iphone? suggest add splash view. not working. donot know reason. used [nsthread sleepfortimeinterval:6.0]; blocks main thread. used gcd didn't help.

in didfinishlaunchingwithoptions, have coded,

dispatch_async(dispatch_get_global_queue(dispatch_queue_priority_default, null), ^{          dispatch_async(dispatch_get_main_queue(), ^{             //get branch response         });      }); 

but first screen appearing before getting response branch.io. kindly help.... major problem in app without cannot test anything.. please me... let me know if have not made myself clear..

why not creating screen between splash screen , main screen, load needed data , when it's done redirected main screen. wait until data loads , may show progress indicator. think it's best of possible solutions.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -