我在我的應用程序之前使用這一點,已經看着一切,我無法找到差異,但對當我運行一些原因:setAnimationDidStopSelector @selector沒有運行方法
-(void)moveSelectorToDisplayPosition:(id)sender{
int givenTag = [sender tag];
UIImageView *tempImageView = [displayedSelections objectAtIndex:givenTag];
[UIView beginAnimations:@"" context:NULL];
[UIView setAnimationDuration:.3];
tempImageView.frame = CGRectOffset(tempImageView.frame, 30 - tempImageView.frame.origin.x, 240 - tempImageView.frame.origin.y);
[UIView setAnimationDidStopSelector:@selector(loadInTextForSelectedTool:)];
[UIView commitAnimations];
}
loadInTextForSelectedTool
不會被調用和我無法弄清楚爲什麼。沒有錯誤或任何東西。
這是我試圖運行的方法,任何人都可以讓我知道,如果他們看到任何錯誤或者我可能已經忘記的東西?我試着也設置[UIView setAnimationDelegate:tempImageView];
但沒有運氣:(。
-(void)loadInTextForSelectedTool:(id)sender;
感謝。
但動畫運行正常嗎? –
是的,它確實如此,所以我不知道問題是什麼... –