[英]How to animate overlay drawing in MKMapView
我正在MKMapView
上繪制MKCircleView
疊加層。 它工作正常,除了我需要為該覆蓋圖繪制動畫。
我知道我需要使用:
[UIView beginAnimations:nil context:NULL];
[UIView commitAnimations];
,但我不知道將動畫代碼放在哪里。
謝謝。
不確定您要尋找的東西..例如:
[UIView beginAnimations:@"fade" context:nil];
[UIView setAnimationDuration:0.6f];
theView.alpha = 0.0f;
theView.transform = CGAffineTransformMakeScale(0.01,0.01);
theView.alpha = 1.0f;
[UIView commitAnimations];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.