我正在使用第三方工具包为应用程序生成一个演练,但是当演练的框架更改时,它仅显示最后一个框架,并跳过之前的框架。
我曾尝试暂停教练标记的流动,甚至添加其他教练标记,但是它也没有起作用。以下是我的代码片段,由于我不太了解此工具箱,因此任何帮助都将非常有用。 每次我如何更改教练标记消息?
override func viewDidLoad() {
super.viewDidLoad()
self.navigationController?.navigationBar.barTintColor = UIColor(red: 139/255, green: 26/255, blue: 137/255, alpha: 1.0)
self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.white]
self.navigationController?.navigationBar.tintColor = .white
self.navigationItem.backBarButtonItem?.title = "Back"
checkForVolume()
self.coachMarksController.dataSource = self
pointOfInterest.frame = CGRect(x: 10, y: 30, width: 30, height: 50)
coachMarksController.restoreAfterChangeDidComplete()
coachMarksController.prepareForChange()
pointOfInterest.frame = CGRect(x: 140, y: 30, width: 130, height: 50)
coachMarksController.restoreAfterChangeDidComplete()
coachMarksController.prepareForChange()
pointOfInterest.frame = CGRect(x: 330, y: 25, width: 35, height: 40)
coachMarksController.restoreAfterChangeDidComplete()
coachMarksController.prepareForChange()
}
并且当我同时使用coachMarksController.flow.pause()和coachMarksController.flow.resume()时,屏幕会冻结并覆盖,但根本没有教练标记