具有CATiledLayer的UIViews是否具有動畫?無法正確顯示CATiledLayer的視圖
如果我調用以下:
[myContentView setNeedsDisplay];
CGContextRef上下文= UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:context];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:10]; [UIView commitAnimations];
如果UIView是一個沒有CATiledLayer的「正常」UIView,這將工作得很好。然而,只要我添加一個CATiledLayer類型的子圖層,動畫就無法正常工作。 頁面翻轉工作,但底層頁面不顯示(只是空白),直到動畫完成。
我試過[myContentView setNeedsDisplay];之前,之後,甚至在動畫塊的中間。如果myContentView具有CATiledLayer,則沒有區別。
任何幫助表示讚賞。