UIPageControl 允许连续交互

UIPageControl allowsContinuousInteraction

UIPageControl 有一种新的改变页面的方式,它被称为持续交互,在 UIKit 14 及以上版本中可用。

我想知道此行为是否会在针对 SDK 13 编译但在使用 iOS14 的设备上启动的应用程序中启用(从 iOS 13 更新后)

更新:

我没有可以更新到 iOS14

的设备

更新:

我有 Xcode 12。但是模拟器在 iOS14 下,我必须重新编译应用程序,将使用 sdk 14,将其安装在 iOS14 模拟器上 我想模拟一个用户在更新到 iOS14

后在他的设备上打开一个用 sdk13 编译的应用程序的情况

I have Xcode 12. But the simulator is under iOS14 and I have to recompile the app, sdk 14 will be used, to install it on iOS14 simulator I want to simulate a case when a user open, an app compiled with sdk13, on his devices after updating to iOS14

你做错了。使用 Xcode 11 构建应用程序并在 Finder 中找到构建的应用程序。切换到 Xcode 12 Simulator 运行 iOS 14 并将该应用程序拖到它上面。该应用程序运行,现在您可以看到它的行为方式。

或者,您可以将 Xcode 11 直接与 iOS 14 模拟器一起使用。有关说明,请参阅 https://developer.apple.com/videos/play/wwdc2019/418/ 从 12:28 分钟开始。

[答案是...不,iOS 14 上的 iOS 13 应用程序 运行 没有启用连续交互。它的行为类似于 iOS 13.]