【发布时间】:2016-10-27 09:27:37
【问题描述】:
我正在尝试绑定一个库,我遇到了这个问题:
// @interface PTPusher : NSObject <PTPusherConnectionDelegate, PTPusherEventBindings>
[BaseType(typeof(NSObject))]
interface PTPusher : IPTPusherConnectionDelegate, IPTPusherEventBindings
找不到IPTPusherConnectionDelegate 和IPTPusherEventBindings,但它们未更改的名称确实存在:
// @protocol PTPusherConnectionDelegate <NSObject>
[Protocol, Model]
[BaseType(typeof(NSObject))]
interface PTPusherConnectionDelegate
为什么Objective Sharpie 在继承的接口列表中添加I,而不是在接口名称本身?
我应该改变什么来解决这个问题?我是在接口名称中添加 I 还是从继承的接口列表中删除 I?或者我可以在不更改这些内容的情况下解决这个问题,只需向这些类/接口添加或删除属性?
【问题讨论】:
-
不是重复的:stackoverflow.com/questions/36448006/… 这不能回答我的问题。它告诉我可以删除 I,但我想深入了解 Objective Sharpie 生成的内容以及我应该如何解决此问题。
标签: xamarin xamarin.ios objective-sharpie xamarin-binding