@bandejapaisa, , , .
-, kbSize.height , . , UIViewController, :
float insetAmount = (UIInterfaceOrientationIsPortrait(self.interfaceOrientation)?kbSize.height:kbSize.width) - heightOfBottom;
self.interfaceOrientation ( ), UIInterfaceOrientationIsPortrait YES, - ( ). kbSize.height, Portrait, kbSize.width, Landscape, , .
, self.view.frame.size.height. :
float heightOfBottom = (UIInterfaceOrientationIsPortrait(self.interfaceOrientation)?self.view.frame.size.height:self.view.frame.size.width) - screenHeightMinusBottom;
, ...