我已经实现了一个自定义UIWindow
,这将是我的主窗口。我已经添加了一个UILongPressGestureRecognizer
。应用程序中的所有视图都会对此做出响应,除了UIWebView
. 我对这个特殊的问题有点困惑。
下面是我实现UILongPressGestureRecognizer
in的方式UIWindow
,
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
// Initialization code
UILongPressGestureRecognizer* longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPressAction:)];
[longPress setMinimumPressDuration:3];
[self addGestureRecognizer:longPress];
}
return self;
}
有什么理由可以解决这个问题吗?如何解决这个问题?
谢谢 !