簡體   English   中英

如何為MKMapView中的疊加圖制作動畫

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM