现象:
popViewControllerAnimated:后键盘弹出
在键盘没完全收回的情况下,如果弹出UIAlertView或者UIActionSheet,那么在收回系统控件的时候popViewControllerAnimated:,键盘会重新弹出。
解决办法:在UIAlertView或者UIActionSheet didDismiss的时候才popViewControllerAnimated:
- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex
{
LOGD(@"%ld",buttonIndex);
if (buttonIndex == 1) {
[self.navigationController popViewControllerAnimated:YES];
}
}