4
我需要在塊中設置setAnimationBeginsFromCurrentState
。我找不到任何文檔或示例如何操作。基於UIView塊的動畫重繪
我需要轉換成這樣:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationBeginsFromCurrentState:YES]; //The problem
[UIView setAnimationDuration:kKeyboardAnimationDuration];
[self.view setFrame:viewFrame];
[UIView commitAnimations];
成塊,以及設置setAnimationBeginsFromCurrentState
屬性。
啊!爲什麼我沒有看到:S謝謝你的幫助! – random