没有互联网连接时调用'performFetchWithCompletionHandler'吗? [英] Is 'performFetchWithCompletionHandler' called when no internet connection?
本文介绍了没有互联网连接时调用'performFetchWithCompletionHandler'吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果设备未连接到互联网, UIApplicationDelegate
是否会调用 performFetchWithCompletionHandler
?在这种情况下,文档不清楚。
Will the UIApplicationDelegate
call performFetchWithCompletionHandler
if device is not connected to the internet ? The documentation isn't clear in this case.
推荐答案
经过一些测试,我可以声称 performFetchWithCompletionHandler
如果设备未连接到互联网,则不会调用委托方法。
在iOS8和iOS9上测试。
After some tests I can claim that performFetchWithCompletionHandler
delegate method is not called if device is not connected to the internet.
Tested on iOS8 and iOS9.
这篇关于没有互联网连接时调用'performFetchWithCompletionHandler'吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文