putpkt: write failed, broken pipe

This problem seems to happen whenever I quit the app on my device (pressing the home button) while the debugger is stopped at a breakpoint. Any subsequent build and run on my device results in this error. To fix this, there’s no need to delete the app, clean or rebuild. Just need to restart the … Read more

Unable to get presentViewController to work

If ViewController is the root view controller, it can’t present a modal view controller from within its own viewDidLoad, because at that point it doesn’t have information like the screen size. If other view controllers have already displayed, this will work. If the root view controller is a UINavigationController, you will see a view sliding … Read more

Disabling user interaction of the current view on screen

Maybe you want the whole application to not react at all? [[UIApplication sharedApplication] beginIgnoringInteractionEvents]; use [[UIApplication sharedApplication] endIgnoringInteractionEvents]; to revert this (credits to nerith) same for Swift: UIApplication.sharedApplication().beginIgnoringInteractionEvents() UIApplication.sharedApplication().endIgnoringInteractionEvents() and Swift 3/4 UIApplication.shared.beginIgnoringInteractionEvents() UIApplication.shared.endIgnoringInteractionEvents() edit for iOS 13: beginIgnoringInteractionEvents is deprecated in iOS13 just make a new full size View and lay it over your … Read more