|
|
@@ -10,6 +10,8 @@ import UIKit
|
|
|
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|
|
|
|
|
var window: UIWindow?
|
|
|
+
|
|
|
+ var isShowTipView : Bool = true
|
|
|
|
|
|
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
|
|
|
|
|
|
@@ -26,8 +28,11 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|
|
func sceneDidBecomeActive(_ scene: UIScene) {
|
|
|
// Called when the scene has moved from an inactive state to an active state.
|
|
|
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
|
|
|
- ///判断要不要弹引导用户去评价
|
|
|
- QSLGuideusersToCommentManager.commentShare.manageWhetherTriggerPopUpWindow(QSLGuideusersToCommentType.nonMember)
|
|
|
+ if self.isShowTipView {
|
|
|
+ ///判断要不要弹引导用户去评价
|
|
|
+ QSLGuideusersToCommentManager.commentShare.manageWhetherTriggerPopUpWindow(QSLGuideusersToCommentType.nonMember)
|
|
|
+ }
|
|
|
+ self.isShowTipView = false
|
|
|
}
|
|
|
|
|
|
func sceneWillResignActive(_ scene: UIScene) {
|
|
|
@@ -41,6 +46,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|
|
}
|
|
|
|
|
|
func sceneDidEnterBackground(_ scene: UIScene) {
|
|
|
+ self.isShowTipView = true
|
|
|
// Called as the scene transitions from the foreground to the background.
|
|
|
// Use this method to save data, release shared resources, and store enough scene-specific state information
|
|
|
// to restore the scene back to its current state.
|