[[NSNotificationCenterdefaultCenter] addObserver:selfselector:@selector(jianpantanchu:) name:UIKeyboardWillShowNotificationobject:nil];
[[NSNotificationCenterdefaultCenter] addObserver:selfselector:@selector(jianpanhuishou:) name:UIKeyboardWillHideNotificationobject:nil];
//键盘弹出
- (void)jianpantanchu:(NSNotification*)notification
{
NSDictionary*info = notification.userInfo;
NSValue*value = [info objectForKey:UIKeyboardFrameEndUserInfoKey];
CGSizesize = [value CGRectValue].size;
_backview.frame= CGRectMake(0, SCREEN_HEIGHT- STA_NAV_HEIGHT- 35*displayScale- size.height, SCREEN_WIDTH, 35*displayScale);
}
//键盘回收
- (void)jianpanhuishou:(NSNotification*)notification
{
_backview.frame= CGRectMake(0, SCREEN_HEIGHT- STA_NAV_HEIGHT- 35*displayScale, SCREEN_WIDTH, 35*displayScale);
}