Skip to content

Instantly share code, notes, and snippets.

@mynameismiek
mynameismiek / ViewExtensions.cs
Last active December 14, 2015 00:08 — forked from ChuckSavage/ViewExtensions.cs
Added tap gestures and a way to remove the views from this class when they are disposed. This class registers itself with the default notification center. Simply add NSNotificationCenter.DefaultCenter.PostNotificationName(ViewExtensions.ViewDisposed, View) to your disposal method.
using System.Collections.Generic;
using MonoTouch.Foundation;
using MonoTouch.ObjCRuntime;
using MonoTouch.UIKit;
namespace iOSLib
{
public static class ViewExtensions
{
public static String ViewDisposed = "ViewExtension_ViewDisposed";