My iOS app freezes but no error appears

后端 未结 5 1671
时光取名叫无心
时光取名叫无心 2021-02-03 13:43

Does any body know what I need to check if app freezes after some time? I mean, I can see the app in the iPhone screen but no view responds.

I did some google and i fou

5条回答
  •  囚心锁ツ
    2021-02-03 13:54

    Most Of the Time this happened to me when a design change is being called for INFINITE time. Which function can do that? well it is this one:

    override func viewDidLayoutSubviews() {
            super.viewDidLayoutSubviews()
        }
    

    Solution is to add condition where the function inside of viewDidLayoutSubviews get calls only 1 time.

提交回复
热议问题