In Custom Keyboard Extension , we can\'t use
`didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation`
and
Before iOS 8.3, you have to use
-(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
duration:(NSTimeInterval)duration
This one does not work (it should be a bug):
-(void)viewWillTransitionToSize:(CGSize)size
withTransitionCoordinator:(id)coordinator
On iOS 8.3 and later, you'd better use
-(void)viewWillTransitionToSize:(CGSize)size
withTransitionCoordinator:(id)coordinator
because
-(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
duration:(NSTimeInterval)duration
is deprecated.