SORU
16 ŞUBAT 2009, PAZARTESİ


UİView bir animasyon iptal?

Devam ederken UİView bir animasyon iptal etmek mümkün mü? Ya ben CA seviyesinin düşmesi gerekir?

yani ben yaptım böyle bir şey (belki de son bir animasyon aksiyon ayar):

[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:duration];
[UIView setAnimationCurve: UIViewAnimationCurveLinear];
// other animation properties

// set view properties

[UIView commitAnimations];

Ama animasyon tamamlar ve animasyon etkinlik sona erdi önce, (kısa kes) iptal etmek istiyorum. Bu mümkün mü? Etrafında Googling bulur bir kaç kişi cevap ile aynı soru - ve bir veya iki kişi soran yapılamaz elbette.

CEVAP
19 Mart 2010, Cuma


Kullanımı:

#import <QuartzCore/QuartzCore.h>

.......

[myView.layer removeAllAnimations];

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • David Tedeyev

    David Tedeye

    20 AĞUSTOS 2011
  • FPSRussia

    FPSRussia

    19 NİSAN 2010
  • Semantic Mastery

    Semantic Mas

    30 EKİM 2013