I'm developing a custom Keyboard and I'm trying to catch a device rotation event.
I've already tried :
override func viewDidLayoutSubviews() {
print("Foo")
}
and
override func viewWillLayoutSubviews() {
print(" Bar")
}
and
override func didRotateFromInterfaceOrientation(sender : UIInterfaceOrientation){
print("");
}
and
override func viewWillTransitionToSize(size: CGSize, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) {
print("Bar")
}
and
override func updateViewConstraints() {
super.updateViewConstraints()
print(" Foo")
}
But it's not working.
iPad Air 2 Simulator - iOS9
Any idea ?