我在youtube上看到了这个视频,在objective-c中他能够覆盖_popoversDisabled方法并允许它们显示在iPhone上。
我的问题是,我如何在单音中做同样的事情,如下所示:
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