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
Use following code for disabling interaction with background
//Ignore interaction for background activities
[[UIApplication sharedApplication] beginIgnoringInteractionEvents];
Now if you want to enable the interaction use following snippet
if ([[UIApplication sharedApplication] isIgnoringInteractionEvents]) {
// Start interaction with application
[[UIApplication sharedApplication] endIgnoringInteractionEvents];
}