The only thing I've found是你必须在plist文件中将UIApplicationSupportsShakeToEdit设置为false,但它对我不起作用。
答案 0 :(得分:2)
我插入了这一行:
[UIApplication sharedApplication].applicationSupportsShakeToEdit = NO;
在webViewDidFinishLoad课程中,它为我创造了奇迹。
转到MainViewController.m并将webViewDidFinishLoad
更改为如下所示:
- (void)webViewDidFinishLoad:(UIWebView*)theWebView
{
// Black base color for background matches the native apps
theWebView.backgroundColor = [UIColor blackColor];
[UIApplication sharedApplication].applicationSupportsShakeToEdit = NO;
return [super webViewDidFinishLoad:theWebView];
}