Skip to content

Instantly share code, notes, and snippets.

@claybridges
Created November 27, 2014 02:25
Show Gist options
  • Save claybridges/39e47f4579fd9526273f to your computer and use it in GitHub Desktop.
Save claybridges/39e47f4579fd9526273f to your computer and use it in GitHub Desktop.
Allows setting of WKPreferences.developerExtrasEnabled flag
@import WebKit;
@interface WKPreferences (DevExtras)
@property (nonatomic, setter=_setDeveloperExtrasEnabled:) BOOL _developerExtrasEnabled;
- (void)enableDevExtras;
@end1
// Copyright (c) 2014 Clay Bridges. All rights reserved.
#import "WKPreferences+DevExtras.h"
@implementation WKPreferences (DevExtras)
@dynamic _developerExtrasEnabled;
- (void)enableDevExtras
{
[self _setDeveloperExtrasEnabled:YES];
}
@end
@lucatorella
Copy link

This solution doesn't seem to work in iOS. It just works in OS X. Am I right?

@shravanteegala
Copy link

is it Working fine or getting any issues ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment