MonoTouch的UIPopover iPhone覆盖_popoversDisabled(Mono

2019-09-17 01:42发布

我看到YouTube上的这个视频里,Objective-C中,他能够覆盖_popoversDisabled方法,让他们显示在iPhone上。

我的问题是,我会怎么做在MonoTouch的同样的事情,如下图所示:

This code was written by @hamzasood
===============================
=====popover code===========
=============================
@interface UIPopoverController (overrides)
+ (BOOL)_popoversDisabled;
@end

@implementation UIPopoverController (overrides)

+ (BOOL)_popoversDisabled { return NO;
}

@end

Objective-C的视频教程在这里: http://www.youtube.com/watch?v=1iykxemuxbk&feature=related

文章来源: Monotouch UIPopover iPhone override _popoversDisabled