UIControlEventProxy或UIControlEventProxy.Activate

问题描述

是否有人熟悉UIControlEventProxy或UIControlEventProxy.Activate()或有关此UIControlEvent含义的任何文档?我的应用程序和stacktrace状态崩溃:

Xamarin Exception Stack:
System.NullReferenceException: Object reference not set to an instance of an object.
  at UIKit.UIControlEventProxy.Activated () <0x103c7ee44 + 0x000a4> in <8fb993547ddc482abf45058220aeb79d#0c0d9011f50c6878aed1b494d399c789>:0
  at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args,system.intPtr principal,system.intPtr delegate) <0x103c75db8 + 0x00043> in <8fb993547ddc482abf45058220aeb79d#0c0d9011f50c6878aed1b494d399c789>:0
  at UIKit.UIApplication.Main (System.String[] args,System.String principalClassName,System.String delegateClassName) <0x103c75d10 + 0x00053> in <8fb993547ddc482abf45058220aeb79d#0c0d9011f50c6878aed1b494d399c789>:0
  at iOS.Application.Main (System.String[] args) <0x102b9c61c + 0x00033> in <e9551bcb70aa4f99a5c6812167107484#0c0d9011f50c6878aed1b494d399c789>:0

用户点击导航到我的代码中指定的URL的超链接时,就会发生此崩溃。

我可以按请求提供代码,但是在Psuedo中流程如下:

1。用户点击

2。调用LoadURLAsync()

a。使用FormUtils.isURLValid(字符串url)检查URL是否有效 b。如果为true,请转到指定的URL C。如果没有,则显示一个对话框弹出窗口

方法中的所有动作均包装在try / catch中。

同样,我认为我可以解决问题,但是在UIControlEventProxy上找不到任何东西。任何帮助将不胜感激。

谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)