Skip to content

Instantly share code, notes, and snippets.

View barisatamer's full-sized avatar
💧
Playing with Vapor 4

Baris Atamer barisatamer

💧
Playing with Vapor 4
View GitHub Profile
@barisatamer
barisatamer / KeyboardHandler.m
Created March 19, 2016 00:55 — forked from philipmcdermott/KeyboardHandler.m
objective c Getting the keyboard height on iOS.
- (void)viewDidAppear:(BOOL) animated {
[super viewDidAppear:animated];
// Register notification when the keyboard will be show
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWillShow:)
name:UIKeyboardWillShowNotification
object:nil];
// Register notification when the keyboard will be hide
[[NSNotificationCenter defaultCenter] addObserver:self
@barisatamer
barisatamer / navigation_bar_push_view_controller.m
Last active April 16, 2017 01:19
ios show UIViewController
<#class_name#>ViewController *pVc = [[<#class_name#>ViewController alloc] init];
[self.navigationController pushViewController:pVc animated:YES];