微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

UIControlEventProxy或UIControlEventProxy.Activate

如何解决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 举报,一经查实,本站将立刻删除。