public static void Init() { var bundleClass = ObjCExtensions.GetMetaClass("NSBundle"); bundleClass.AddMethod(selEtoLoadNibNamed, new Func <IntPtr, IntPtr, IntPtr, IntPtr, bool> (EtoLoadNibNamed), "B@:@@"); bundleClass.ExchangeMethod(selLoadNibNamed, selEtoLoadNibNamed); }
public static void Init() { var bundleClass = ObjCExtensions.GetMetaClass("NSBundle"); bundleClass.AddMethod(selEtoLoadNibNamed, EtoLoadNibNamed_Delegate, "B@:@@"); bundleClass.ExchangeMethod(selLoadNibNamed, selEtoLoadNibNamed); }