Example #1
0
 private void TryRemoveObserver(NSObject @object, string key)
 {
     try
     {
         @object.RemoveObserver(this, new NSString(key));
     }
     catch
     {
         // yum yum
     }
 }
Example #2
0
 private void TryRemoveObserver(NSObject obj, string key)
 {
     try
     {
         obj.RemoveObserver(this, new NSString(key));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex);
         // yum yum
     }
 }
Example #3
0
 public static void RemoveObserver(this NSObject obj, string key)
 {
     obj.RemoveObserver(helper, (NSString)key);
 }