我似乎无法完全理解prolog (gprolog)的一些行为。作为背景,旋转应该比较两个列表,并查看它们是否已被移动(如下所示)。应该还真。然而,当提出上述问题时,prolog似乎并不尊重规则的顺序。%base case
%recurse over the remainder list (the first list from S to the end)
时
我有一个UIAlertController,如果没有互联网连接,它会弹出。当连接恢复时,我不知道如何恰当地忽略它。因为我每10秒就会检查一次,如果我这样做了:一旦警报视图已经关闭,这将在每隔一段时间关闭主视图。我试过了:
let alert = UIAlertController(title: "No internet Connection", message: "Make sure your device is connected to the i