【发布时间】:2012-11-21 05:59:10
【问题描述】:
我正在尝试将 AUISelectiveBordersView 移植到 MonoTouch。
它基本上是CALayer 的子类,并通过类别集成到UIView。
AUISelectiveBordersLayer 的“翻译”很简单,但集成点有点棘手。在 obj-c 中是这样完成的:
@implementation UIView (AUISelectiveBorder)
+(Class) layerClass {
return [AUISelectiveBordersLayer class];
}
有什么办法可以把它翻译成 MonoTouch?它看起来像是覆盖了一个静态方法,但我在 MT 中看不到 layerClass 或 layerType 之类的东西。
【问题讨论】:
标签: objective-c xamarin.ios static-methods