Skip to content

Instantly share code, notes, and snippets.

View andrey-krivobok's full-sized avatar

andrey-krivobok andrey-krivobok

View GitHub Profile
@andrey-krivobok
andrey-krivobok / UIWebView remote debug
Created October 10, 2012 11:15
Enabling remote debugging in a UIWebView
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// ...Snipped...
[NSClassFromString(@"WebView") _enableRemoteInspector];
// ...Snipped...
}
And connect in Safari to localhost:9999
+ (NSArray *)optionGroups:(NSString *)machineFamily
{
NSMutableArray *items = [NSMutableArray arrayWithCapacity:10];
EppOptionsGroup *group = nil;
EppMachineOption *item = nil;
NSMutableArray *options = nil;
group = [[EppOptionsGroup new] autorelease];
group.name = kGroupEngineAndAccessories;