Skip to content

Instantly share code, notes, and snippets.

View fnc12's full-sized avatar
๐Ÿ˜ˆ

Yevgeniy Zakharov fnc12

๐Ÿ˜ˆ
View GitHub Profile
@jonschlinkert
jonschlinkert / markdown-cheatsheet.md
Last active July 25, 2025 20:07
A better markdown cheatsheet.
@tomohisa
tomohisa / gist:2897676
Created June 8, 2012 19:20
Add and Remove ChildViewController
// 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];