[UIView animateWithDuration:0.3 delay:0.0f options:UIViewAnimationOptionCurveEaseInOut animations:^{
[viewMain setFrame:CGRectMake(0, 30, 1024, 378)];
} completion:^(BOOL finished){
[txtViewNote becomeFirstResponder]; //Its a TextView
}];
上面的代码大部分时间都可以正常工作。但有时线
[txtNote becomeFirstResponder]
导致崩溃。我有try-catch。但是崩溃不会去捕获块。