2010-04-23 61 views
-1

如何在iPhone上创建弹出式动画?我想显示我的uiview作为弹出视图,如uialertview设计。创建弹出式动画

+2

的可能重复http://stackoverflow.com/questions/2600779/custom-alert-view – kennytm 2010-04-23 12:50:53

+0

对不起,我没有看到这个问题 – dragon 2010-04-23 13:08:12

回答

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]; 
    } 
} 

,您可以使用这些功能由我creaed显示一个隐藏的加载动画弹出..

编码快乐..