Skip to content

Latest commit

 

History

History
8 lines (8 loc) · 717 Bytes

README.md

File metadata and controls

8 lines (8 loc) · 717 Bytes

Xamarin Memory Demo

iOS Memory Leaks

  • Using Xcode Instruments run the application with Allocations
  • Use ViewController in the Instrument Detail search view in Xcode Instruments - notice there is only ItemsViewController and AboutViewController
  • Tap on AddItem and you'll see a new view controller in Xcode Instruments - ItemNewViewController
  • Tap Back and you'll see that ItemNewViewController is not deallocated in Xcode Instruments
  • Comment the ViewDidLoad method in ItemNewViewController and uncomment the ViewWillAppear / ViewWillDissapear methods
  • Do the steps above once again an you'll see that ItemNewViewController is deallocated after tapping Back