/xamarin-memory-demo

Explore Memory Issues on VS for Mac default Native Xamarin Application

Primary LanguageC#

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