我似乎不明白为什么循环会全速执行,即使等待在循环中也是如此。 model.collection.distinct("symbol", async function (error, distSymbols) { for (const symbol of distSymbols) { //await computeAggregate(model, symbol);
我已经成功地实现了一个UIScreenEdgePanGestureRecognizer,并且我的方法被触发了,但是手势识别器的“边缘”属性被永久地设置为UIRectEdgeNone,尽管正确的手势被识别,边缘被设置为UIRectEdgeBottom。下面是我对识别器的设置:
UIScreenEdgePanGestureRecognizer* r = [[UIScreenEdgePanGestureRecognizer有人知道为什么这个属性没有被设置</em