Disabling user interaction of the current view on screen

前端 未结 7 641
一个人的身影
一个人的身影 2021-01-31 02:52

My app has many views and their respective controllers. Now I have a set of model classes with business logic in them. One of the model classes(subclass of NSObject) has the res

7条回答
  •  死守一世寂寞
    2021-01-31 03:38

    Here is the code for Swift 3

    UIApplication.shared.beginIgnoringInteractionEvents() 
    UIApplication.shared.endIgnoringInteractionEvents()
    

    Slight update to the syntax

提交回复
热议问题