Skip to content

Instantly share code, notes, and snippets.

@hellosancho
hellosancho / index.html
Created October 27, 2015 02:45 — forked from davidwkeith/index.html
Link directly to custom protocol handlers for mobile, without worrying if the user has your App installed. Licensed under the WFTPL http://www.wtfpl.net/txt/copying/
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>App Redirection</title>
</head>
<body>
<!-- iframe used for attempting to load a custom protocol -->
<iframe style="display:none" height="0" width="0" id="loader"></iframe>
@hellosancho
hellosancho / README.md
Created October 27, 2015 02:45 — forked from FokkeZB/README.md
URL schemes for iOS and Android (2/2)
// add child view
UIViewController* controller = [self.storyboard instantiateViewControllerWithIdentifier:@"test"];
[self addChildViewController:controller];
controller.view.frame = CGRectMake(0, 44, 320, 320);
[self.view addSubview:controller.view];
[controller didMoveToParentViewController:self];
// remove child view
UIViewController *vc = [self.childViewControllers lastObject];
[vc.view removeFromSuperview];