When you are making any service call or network call in your application you can’t disable the touch ability of tab bar and navigation bar, When you make disable the user interaction of view it only disables the view interaction of the view, not the tab bar and the navigation. To disable the touch ability of tab bar and navigation bar you have to use the beginIgnoringInteractionEvents function of the UIApplication class and to able the touch ability you have to use the endIgnoringInteractionEvents function of the UIApplication class. Example
1 2 3 4 5 6 7 8 |
// To disable the touch ability UIApplication.shared.beginIgnoringInteractionEvents() // To able the touch ability UIApplication.shared.endIgnoringInteractionEvents() |
Be the first to comment.