Skip to content

Instantly share code, notes, and snippets.

@mallibone
Created March 7, 2018 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mallibone/f1eb4512c6ac1d6ffb947d863a4fb2f2 to your computer and use it in GitHub Desktop.
Save mallibone/f1eb4512c6ac1d6ffb947d863a4fb2f2 to your computer and use it in GitHub Desktop.
public class AwareNavigationController : UINavigationController
{
public event EventHandler PoppedViewController;
public AwareNavigationController():base() {}
public AwareNavigationController(UIViewController rootViewController):base(rootViewController){}
public AwareNavigationController(IntPtr intPtr) : base(intPtr) { }
public AwareNavigationController(NSCoder coder) : base(coder) { }
public AwareNavigationController(NSObjectFlag t) : base(t) { }
public AwareNavigationController(string nibName, NSBundle bundle) : base(nibName, bundle ) { }
public AwareNavigationController(Type navigationBarType, Type toolbarType) : base(navigationBarType, toolbarType) { }
public override UIViewController PopViewController(bool animated)
{
PoppedViewController?.Invoke(this, null);
return base.PopViewController(animated);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment