2010-04-23 5 views
-1

Comment créer une animation pop-up sur iPhone? Je veux montrer mon uiview comme une vue de popup, comme la conception d'uialertview.Créer une animation contextuelle

+2

double possible de http://stackoverflow.com/questions/2600779/custom-alert-view – kennytm

+0

désolé je n'ai pas vu cette question – dragon

Répondre

0
- (void) killHUD 
{ 

    [alertView dismissWithClickedButtonIndex:0 animated:YES]; 
    [alertView release]; 
    alertView = nil; 
} 
- (void)presentSheet:(NSString *)message withFrame:(CGRect)frame 
{ 
    if(!alertView) 
    { 

     alertView = [[CustomAlertView alloc] initWithFrame:frame onView:self.window]; 
     alertView.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin; 
     [alertView setNeedsDisplay]; 
     [alertView setText:message]; 
     [alertView show]; 
    } 
} 

Vous pouvez utiliser ces fonctions creaed par moi de montrer une peau la fenêtre d'animation de chargement ..

Bonne programmation ..

Questions connexes