Swift: Firebase 3 – How to Implement Interactive Keyboard using inputAccessoryView (Ep 15)
my review point is 9/10
https://youtu.be/ky7YRh01by8?t=2m50s keyboard가 화면에 디스플레이될때 호출되는 hook ( NSNotificationCenter, UIKeyboardWillShowNotification )
https://youtu.be/ky7YRh01by8?t=4m25s getting keyboard height
https://youtu.be/ky7YRh01by8?t=5m22s change textfield location
https://youtu.be/ky7YRh01by8?t=8m42s add animation ( changing textfield location , animateWithDuration , layoutIfNeeded)
https://youtu.be/ky7YRh01by8?t=10m46s remove observer of notification ( 이렇게 제거하지 않으면 memory leak의 위험이 있다, viewDidDisappear , UINotificationCenter)
https://youtu.be/ky7YRh01by8?t=13m40s collection view에서 화면을 아래로 드래그 하는 경우 하단의 키보드도 서서히 밑으로 사라지게 하는 기능을 설정하는 경우 ( 컬렉션뷰obj.keyboardDismissMode = .Interactive )
https://youtu.be/ky7YRh01by8?t=15m14s customizing 기본 textfield와 그에 따른 view controller의 behavior ( inputAccessoryView , canBecomeFirstResoponder)
https://youtu.be/ky7YRh01by8?t=23m50s 화면의 orientation을 바꾸는 경우 view.frame.width는 그 크기가 바뀌지 않는다. 그러나 UIScreen.mainScreen().bounds.width는 변한다.