UIViewController Memory Warning on Unit Tests
Hello brothers and sisters, Leo here. Today’s topic is how to trigger the UIViewController memory warning on your unit tests in Swift. We’ll explore some *hacks* to trigger the memory on the UIViewController. Let’s go! Problem – The UIViewController memory warning You have to test the code inside the didReceiveMemoryWarning() method from a view controller in […]