Monotouch UIPopover iPhone override _popoversDisab

2019-05-31 02:43发布

问题:

I saw this video on youtube where, in objective-c he was able to override the _popoversDisabled method and allow them to be displayed on iPhones.

My Question is, how would I do the same thing in monotouch as shown as below:

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

@implementation UIPopoverController (overrides)

+ (BOOL)_popoversDisabled { return NO;
}

@end

Objective-C video tutorial here: http://www.youtube.com/watch?v=1iykxemuxbk&feature=related